
In this lecture, students will get an overview of the course and understand what they will learn throughout the program. The lecture introduces R, RStudio, and the main topics covered in the course, including data analysis, visualization, biostatistics, regression, and machine learning applications for health and research data.
In this lecture, students will learn how to open RStudio, understand the main RStudio panels, create a new R script, and prepare the workspace for writing and running R code.
Please download the sample Excel dataset before starting the analysis. This file will be used throughout the course for data import, preparation, summary tables, and logistic regression analysis.
Learn how to import an Excel dataset into RStudio using the read_excel() function and prepare it for analysis.
Learn how to select only the important variables needed for the analysis using simple R code.
Learn how to remove unnecessary variables from the dataset to keep the analysis clean and focused.
Learn how to convert categorical variables into factors so they can be used correctly in summary tables and regression analysis.
Learn how to add clear variable labels to make the dataset and output tables easier to understand.
Learn how to create a basic summary table for all selected variables in RStudio.
Learn how to compare participant characteristics by sugar consumption or another grouping variable.
Learn how to format continuous and categorical variables using mean ± SD and n (%)
Learn how to control decimal places for summary statistics and make the table cleaner
Learn how to add p-values to compare groups and support inferential analysis
Learn how to save and export the final table as a Microsoft Word file for reporting or manuscript writing
Learn how to create a simple boxplot in RStudio using continuous and categorical variables.
Learn how to customize boxplot color, outline, width, outliers, and other visual properties.
Learn how to add clear axis labels, plot titles, and legend labels for better interpretation.
Learn how to save and export the final boxplot for reports, presentations, or manuscripts.
Learn how to create a simple bar chart in RStudio for categorical variables.
Learn how to customize bar colors, labels, axis titles, legends, and overall chart appearance.
Learn how to save and export the final bar chart for reports, presentations, or manuscripts.
Understand the research objective, study design, outcome variable, exposure variable, and why logistic regression is appropriate.
Run a simple logistic regression model to assess the crude association between sugar consumption and heart disease.
Interpret odds ratio, 95% confidence interval, and p-value in simple research language.
Run an adjusted logistic regression model by including potential covariates in the analysis
Description: Create a publication-ready table for unadjusted odds ratios with confidence intervals and p-values.
Description: Finalize a clean regression table suitable for reporting research findings.
Write the logistic regression findings clearly for the results section of a manuscript.
Learn how to set up the Microsoft Word file before writing the result section.
Learn how to describe Table 1 using simple manuscript-style language.
Learn how to describe the figure showing heart disease by sugar consumption and income level.
Learn how to write adjusted logistic regression findings using odds ratios, 95% confidence intervals, and p-values.
This short hands-on course is designed for students, researchers, and beginners who want to learn practical regression analysis in R for manuscript-style reporting. Instead of memorizing theory, you will learn by doing a real data analysis project step by step in RStudio.
You will start with the basics, including opening RStudio, loading R packages, importing Excel data, selecting variables, dropping unnecessary variables, defining factor variables, and adding clear variable labels. Then, you will create descriptive and inferential summary tables, format mean ± SD and n (%), set decimal places, add p-values, finalize tables, and export results to Microsoft Word.
The course is organized around three practical research objectives. First, you will assess the association between sugar consumption and heart disease using logistic regression and odds ratio. Second, you will estimate the effect of sugar consumption on heart disease using Poisson regression and risk ratio. Third, you will assess the effect of sugar consumption on BMI using linear regression and mean difference.
By the end of this course, you will be able to prepare data, run regression models, create publication-ready tables, interpret odds ratios, risk ratios, regression coefficients, confidence intervals, and p-values, and write clear results for manuscript-style reporting. This course is simple, practical, and focused on real research data analysis skills.