R and RStudio: Data Science & Biostatistics

R and RStudio: Data Science & Biostatistics Learn data science and biostatistics using R and RStudio.

Explore data management, visualization, statistical modeling, and reproducible analysis through hands-on tutorials and practical examples.

library(ggplot2)library(tidyr)library(dplyr) # Datastunting
29/08/2026

library(ggplot2)
library(tidyr)
library(dplyr)

# Data
stunting

27/08/2026

πŸ“Š Free Course: Logistic Regression Analysis in R for Manuscript Writing

Are you a researcher, student, or health professional who wants to improve your data analysis skills and write publication-ready research results?

This practical course by Mr. Haque, Statistician and Researcher, will guide you step by step through:

βœ… Descriptive analysis in R
βœ… Data visualization using ggplot2
βœ… Logistic regression analysis
βœ… Odds ratio, confidence interval, and p-value interpretation
βœ… Manuscript-style presentation of statistical results

Learn how to use R programming for research data analysis and gain confidence in performing statistical analysis for scientific publications.

πŸŽ“ Suitable for:
βœ” Beginners learning R
βœ” Researchers working with health and epidemiological data
βœ” Students interested in statistical analysis and manuscript writing

πŸš€ Start learning today and strengthen your research analysis skills.

πŸ”— Free course link available in the comment box.

   R packages----library(readxl)library(tidyverse)library(gtsummary)library(gt)library(cards)library(labelled) # Read da...
27/08/2026

R packages----
library(readxl)
library(tidyverse)
library(gtsummary)
library(gt)
library(cards)
library(labelled)

# Read data ----
mydata %
as_gt() %>%
gtsave(
filename = "Table2.docx",
path = "P:/abc"
)

Sample size calculation: Case-Control StudyThe objective of a study is to identify that smoking status is associated wit...
26/08/2026

Sample size calculation: Case-Control Study
The objective of a study is to identify that smoking status is associated with heart disease in a City, 2025

  ---Risk Ratio Estmation--library(readxl)library(tidyverse)library(labelled)library(gtsummary)mydata %  tbl_regression(...
25/08/2026

---Risk Ratio Estmation--

library(readxl)
library(tidyverse)
library(labelled)
library(gtsummary)

mydata %
tbl_regression(
exponentiate = TRUE
)

  --Bar diagram ----Dataset link in the comment boxlibrary(readxl)library(tidyverse)library(labelled)library(gtsummary)m...
25/08/2026

--Bar diagram ----Dataset link in the comment box
library(readxl)
library(tidyverse)
library(labelled)
library(gtsummary)

mydata %
group_by(sugar_cons, income_level) %>%
summarise(
p = mean(heart_disease)*100,
.groups = 'drop'
)

bar1 %
ggplot(aes(y =p, x=sugar_cons, fill = income_level))+
geom_col(
position = position_dodge(width = 0.7),
width = 0.5
)+
labs(
y = "Percentage of heart disease",
x = "Sugar consumption",
fill = "Income level"
)+
geom_text(
aes(label = sprintf("%.1f",p)),
position = position_dodge(width = 0.7),
vjust = -0.5,
size = 4
)+
theme_classic(base_size = 12)+
theme(
legend.position = 'top'
)

print(bar1)

ggsave(
filename = "P:/abc/Fig2.tiff",
plot = bar1,
width = 7,
height = 5,
dpi = 300,
compression = 'lzw'
)

24/08/2026

Learn Logistic Regression in R Programming!

Are you interested in learning how to build and interpret a Logistic Regression model using R? πŸ“Š

In this tutorial, you will learn:

βœ… How to run Logistic Regression in R
βœ… How to interpret Odds Ratios (OR) and 95% Confidence Intervals
βœ… How to create publication-ready regression tables using R
βœ… How to understand and explain model outputs step by step

🎁 FREE Course Link is available in the Comment Box!

Start your journey with R Programming and statistical analysis today. πŸ’»πŸ“ˆ

23/08/2026

-----Descriptive statistics and p-value----

Tab1 %
tbl_summary(
missing = 'no',
by = gender,
statistic = list(
all_categorical() ~ "{n} ({p})",
all_continuous() ~"{mean} Β± {sd}"
),
digits = list(
all_categorical() ~ c(0, 2),
all_continuous() ~ c(2,2)
)
) %>%
add_overall(last=TRUE) %>%
bold_labels() %>%
add_p(
test = list(
all_categorical() ~ "chisq.test",
all_continuous() ~ "t.test"
),
pvalue_fun =~ style_pvalue(.x, digits = 3)
)

print(Tab1)

#--Save the Table--

Tab1 %>%
as_gt() %>%
gtsave(
filename = "Table1.docx",
path = "P:/abc"
)

  Box plotlibrary(readxl)  library(tidyverse)mydata %  ggplot(    aes(y=bmi, x= sugar_cons, fill=income_level)  ) +  geo...
18/08/2026

Box plot
library(readxl)
library(tidyverse)

mydata %
ggplot(
aes(y=bmi, x= sugar_cons, fill=income_level)
) +
geom_boxplot(
linewidth=0.2,
outlier.colour = 'red',
notch = TRUE
)+
labs(
y = "Body mass index",
x = "Sugar consumption",
fill = "Income level"
)+
theme_classic()+
theme(
legend.position = 'top'
)

Address

School Of Computing, Mathematics & Engineering
Bathurst, NSW
2795

Telephone

+61406481476

Website

Alerts

Be the first to know and let us send you an email when R and RStudio: Data Science & Biostatistics posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The School

Send a message to R and RStudio: Data Science & Biostatistics:

Shortcuts

Share