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

Advanced Linear Models for Data Science 2: Statistical Linear Models (Coursera) Coursera
Johns Hopkins University

Advanced Linear Models for Data Science 2: Statistical Linear Models (Coursera)

Welcome to the Advanced Linear Models for Data Science Class 2: Statistical Linear Models. This class is an introduction to least squares from a linear algebraic and mathematical perspective. Before beginning the class make sure that you have the following: a basic understanding of linear algebra and multivariate calculus; a basic understanding of statistics and regression models; at least a little familiarity with proof based mathematics; basic knowledge of the R programming language.

Dec 21st 2026
4 Weeks
Global Sodium Reduction Strategies (Coursera) Coursera
Johns Hopkins University

Global Sodium Reduction Strategies (Coursera)

This course will help guide policy makers, advocates, and program managers as they design, plan, and implement sodium reduction interventions to protect public health. We invite you to see what interventions have been proven at scale, what shows promise, and what lessons have been learned along the way from the implementation of sodium reduction strategies all around the globe.

Dec 28th 2026
3 Weeks
Tratando los síntomas urinarios por HPB (Coursera) Coursera
Universidad de los Andes

Tratando los síntomas urinarios por HPB (Coursera)

El curso Tratando los síntomas urinarios por Hiperplasia Prostática Benigna (HPB) es un curso completamente integral en donde se abordarán todos los aspectos necesarios para entender la frecuencia de los síntomas en nuestra sociedad, la necesidad que tienen los pacientes para buscar ayuda en una patología que afecta mucho la calidad de vida.

Dec 28th 2026
4 Weeks
Lecture Series for Preventing and Controlling COVID-19 (Coursera) Coursera
Xi'an Jiaotong University

Lecture Series for Preventing and Controlling COVID-19 (Coursera)

In December 2019, a cluster of patients with pneumonia of unknown cause appeared in Wuhan, Hubei. Governments at all levels and Department of Health Administration highly valued and rapidly organized the centers for Disease Control and Prevention (CDC), medical institutions, and scientific research academies to conduct a survey, rescue, and collaborative research. This new antigen was quickly identified as a novel coronavirus, named as 2019-nCoV by World Health Organization (WHO).

Dec 21st 2026
3 Weeks
The Fundamental of Data-Driven Investment (Coursera) Coursera
Sungkyunkwan University - SKKU

The Fundamental of Data-Driven Investment (Coursera)

In this course, the instructor will discuss the fundamental analysis of investment using R programming. The course will cover investment analysis topics, but at the same time, make you practice it using R programming. This course's focus is to train you to do the elemental analysis for investment management that you might need to do in your job every day. Additionally, the study note to do using Python programming will be provided.

Dec 28th 2026
4 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?

Dec 28th 2026
5-12 Weeks
Bayesian Statistics: Techniques and Models (Coursera) Coursera
University of California, Santa Cruz

Bayesian Statistics: Techniques and Models (Coursera)

This is the second of a two-course sequence introducing the fundamentals of Bayesian statistics. It builds on the course Bayesian Statistics: From Concept to Data Analysis, which introduces Bayesian methods through use of simple conjugate models. Real-world data often require more sophisticated models to reach realistic conclusions. This course aims to expand our “Bayesian toolbox” with more general models, and computational techniques to fit them.

Dec 28th 2026
5-12 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.

Dec 28th 2026
4 Weeks
Population Health: Responsible Data Analysis (Coursera) Coursera
Leiden University

Population Health: Responsible Data Analysis (Coursera)

In most areas of health, data is being used to make important decisions. As a health population manager, you will have the opportunity to use data to answer interesting questions. In this course, we will discuss data analysis from a responsible perspective, which will help you to extract useful information from data and enlarge your knowledge about specific aspects of interest of the population.

Dec 28th 2026
4 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.

Dec 28th 2026
4 Weeks