Linear Regression in R for Public Health (Coursera)

Linear Regression in R for Public Health (Coursera)

Public Health has been defined as “the art and science of preventing disease, prolonging life and promoting health through the organized efforts of society”. Knowing what causes disease and what makes it worse are clearly vital parts of this. This requires the development of statistical models that describe how patient and environmental factors affect our chances of getting ill. This course will show you how to create such models from scratch, beginning with introducing you to the concept of correlation and linear regression before walking you through importing and examining your data, and then showing you how to fit models.

Class Deals by MOOC List - Click here and see Coursera's Active Discounts, Deals, and Promo Codes.

Using the example of respiratory disease, these models will describe how patient and other factors affect outcomes such as lung function.
Linear regression is one of a family of regression models, and the other courses in this series will cover two further members. Regression models have many things in common with each other, though the mathematical details differ.
This course will show you how to prepare the data, assess how well the model fits the data, and test its underlying assumptions – vital tasks with any type of regression.
You will use the free and versatile software package R, used by statisticians and data scientists in academia, governments and industry worldwide.
Course 2 of 4 in the Statistical Analysis with R for Public Health Specialization.

What You Will Learn

  • Describe when a linear regression model is appropriate to use
  • Read in and check a data set's variables using the software R prior to undertaking a model analysis
  • Fit a multiple linear regression model with interactions, check model assumptions and interpret the output

Syllabus

WEEK 1
Introduction to linear regression
Before jumping ahead to run a regression model, you need to understand a related concept: correlation. This week you’ll learn what it means and how to generate Pearson’s and Spearman’s correlation coefficients in R to assess the strength of the association between a risk factor or predictor and the patient outcome. Then you’ll be introduced to linear regression and the concept of model assumptions, a key idea underpinning so much of statistical analysis.

WEEK 2
Linear Regression in R
You’ll be introduced to the COPD data set that you’ll use throughout the course and will run basic descriptive analyses. You’ll also practise running correlations in R. Next, you’ll see how to run a linear regression model, firstly with one and then with several predictors, and examine whether model assumptions hold.

WEEK 3
Multiple Regression and Interaction
Now you’ll see how to extend the linear regression model to include binary and categorical variables as predictors and learn how to check the correlation between predictors. Then you’ll see how predictors can interact with each other and how to incorporate the necessary interaction terms into the model and interpret them. Different kinds of interactions exist and can be challenging to interpret, so we will take it slowly with worked examples and opportunities to practise.

WEEK 4
Model Building
The last part of the course looks at how to build a regression model when you have a choice of what predictors to include in it. It describes commonly used automated procedures for model building and shows you why they are so problematic. Lastly, you’ll have the chance to fit some models using a more defensible and robust approach.

Go to Class
MOOC List is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Related Courses

Public Health Perspectives on Sustainable Diets (Coursera) Coursera
Johns Hopkins University

Public Health Perspectives on Sustainable Diets (Coursera)

What we eat and how we produce that food have significant effects on human health and the sustainability of our planet. But what is a ‘sustainable’ diet? A sustainable diet, as defined by the FAO, promotes health and well-being and provides food security for the present population while sustaining human and natural resources for future generations. This short course looks at the urgent need to address the sustainability of our food systems, including better understanding the complex relationship between diet and climate change. We’ll explore current research on dietary shifts needed in high, middle, and low-income countries to achieve both sustainability and food security goals and discuss evidence-based strategies to promote sustainable diets.

Nov 30th 2026
3 Weeks
The People, Power, and Pride of Public Health (Coursera) Coursera
Johns Hopkins University

The People, Power, and Pride of Public Health (Coursera)

The People, Power, and Pride of Public Health provides an engaging overview of the incredible accomplishments and promise of the public health field. The first module includes interviews with legendary public health figures whose work led to millions of lives saved with vaccines, air bags and car seats, and the federal Women Infants and Children (WIC) nutrition program.

Nov 23rd 2026
3 Weeks
Suicide Prevention (Coursera) Coursera
Wesleyan University

Suicide Prevention (Coursera)

This course will explore the science of suicide research, prevention, and intervention. The field of suicide research is young and knowledge is rapidly changing. Topics will include terminology, epidemiology, historical and contemporary theories of suicide, modern approaches to suicide research, empirically supported approaches to prevention and intervention, the lived experiences of those with suicidal thoughts and attempts.

Nov 30th 2026
4 Weeks
Systems Thinking In Public Health (Coursera) Coursera
Johns Hopkins University

Systems Thinking In Public Health (Coursera)

This course provides an introduction to systems thinking and systems models in public health. Problems in public health and health policy tend to be complex with many actors, institutions and risk factors involved. If an outcome depends on many interacting and adaptive parts and actors the outcome cannot be analyzed or predicted with traditional statistical methods. Systems thinking is a core skill in public health and helps health policymakers build programs and policies that are aware of and prepared for unintended consequences.

Nov 30th 2026
4 Weeks
Tobacco & Nicotine: Public Health, Science, Policy, and Law (Coursera) Coursera
University of Michigan

Tobacco & Nicotine: Public Health, Science, Policy, and Law (Coursera)

This course provides a strong foundation in the history of smoking and other tobacco and nicotine use; the individual and public health impact; tobacco use prevalence trends in adults, youth and key subpopulations; and how cigarette smoking came to be, and remains to this day, the leading preventable cause of death in the U.S. and globally, despite the fact that tobacco control efforts have collectively constituted one of the most successful public health endeavors in our history.

Nov 30th 2026
5-12 Weeks
Python and Statistics for Financial Analysis (Coursera) Coursera
The Hong Kong University of Science and Technology - HKUST

Python and Statistics for Financial Analysis (Coursera)

Python is now becoming the number 1 programming language for data science. Due to python’s simplicity and high readability, it is gaining its importance in the financial industry. The course combines both python coding and statistical concepts and applies into analyzing financial data, such as stock data.

Nov 30th 2026
4 Weeks
Communicating During Global Emergencies (Coursera) Coursera
Emory University

Communicating During Global Emergencies (Coursera)

In collaboration with the Rollins School of Public Health and the CDC's Division of Global Health Protection, Emergency Response, and Recovery Branch, this course introduces basic concepts and principles of communicating during a global crisis or emergency. It explores why communication during an emergency is different and the importance of adapting emergency messages to the needs of affected populations.

Nov 30th 2026
3 Weeks
Introduction to Dental Medicine (Coursera) Coursera
University of Pennsylvania

Introduction to Dental Medicine (Coursera)

The mouth is the window into human health. This course provides an overview of dental medicine to engage, educate, excite and assist you in improving the oral health of your patients and members of your community. We will review topics in dental medicine including scope of the field, what to expect in function, and some of the many ways that dysfunction may present for different patients.

Nov 30th 2026
5-12 Weeks
Essentials of Global Health (Coursera) Coursera
Yale University

Essentials of Global Health (Coursera)

Essentials of Global Health is a comprehensive introduction to global health. It is meant to introduce you to this topic in well-structured, clear and easy to understand ways. Much of the course will focus on five questions: What do people get sick, disabled and die from; Why do they suffer from these conditions? Which people are most affected? Why should we care about such concerns? What can be done to address key health issues, hopefully at least cost, as fast as possible, and in sustainable ways?

Nov 30th 2026
5-12 Weeks