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

Basic Statistics (Coursera) Coursera
University of Amsterdam

Basic Statistics (Coursera)

Understanding statistics is essential to understand research in the social and behavioral sciences. In this course you will learn the basics of statistics; not just how to calculate them, but also how to evaluate them. This course will also prepare you for the next course in the specialization - the course Inferential Statistics. In the first part of the course we will discuss methods of descriptive statistics. You will learn what cases and variables are and how you can compute measures of central tendency (mean, median and mode) and dispersion (standard deviation and variance). Next, we discuss how to assess relationships between variables, and we introduce the concepts correlation and regression.

Oct 26th 2026
5-12 Weeks
Compreendendo o Zika e doenças emergentes (Coursera) Coursera
Universidade de São Paulo, Brasil

Compreendendo o Zika e doenças emergentes (Coursera)

Através deste curso você vai saber porque tantas doenças que surgiram atualmente (doenças emergentes) são causadas por vírus, como elas surgem e se espalham. Veremos como vírus causadores de doenças entram em contato com o ser humano e como se espalham, principalmente aqueles transmitidos por mosquitos, como os vírus da Dengue e Zika.

Nov 2nd 2026
5-12 Weeks
The exposome: cracking the science about what makes us sick (Coursera) Coursera
Universiteit Utrecht

The exposome: cracking the science about what makes us sick (Coursera)

What are the causes of disease? We know that most diseases result from a combination of genes and environment (nature and nurture). Our genes alone do not determine our fate. For most complex diseases, externalities - environmental factors in the broad sense - are more important. This includes our living and working environments, diet, social support and stress, pollution, and exposure to infectious agents. Exposome research is about discovering the non-genetic drivers of health and disease.

Nov 1st 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 2nd 2026
5-12 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 2nd 2026
5-12 Weeks
Population Health: Predictive Analytics (Coursera) Coursera
Leiden University

Population Health: Predictive Analytics (Coursera)

Predictive analytics has a longstanding tradition in medicine. Developing better prediction models is a critical step in the pursuit of improved health care: we need these tools to guide our decision-making on preventive measures, and individualized treatments. In order to effectively use and develop these models, we must understand them better. In this course, you will learn how to make accurate prediction tools, and how to assess their validity. First, we will discuss the role of predictive analytics for prevention, diagnosis, and effectiveness. Then, we look at key concepts such as study design, sample size and overfitting.

Oct 26th 2026
4 Weeks
Public Health in Humanitarian Crises 1 (Coursera) Coursera
Johns Hopkins University

Public Health in Humanitarian Crises 1 (Coursera)

This course, Public Health in Humanitarian Crises 1, introduces discussions about the public health approach to problems experienced by people affected by disasters, both natural and related to conflict. The course discusses the many changes which occur in people’s lives when they are uprooted by a disaster, ranging from changes in disease patterns, access to health care, livelihoods, shelter, sanitary conditions, nutritional status, etceteras. We will explore what humanitarian interventions could look like if we want to mitigate the effects of disasters. The course content is a mix of theoretical knowledge and many practical examples from recent disasters. We think this course is unique because it contains so many practical ‘real-life’ examples and is taught by instructors and guest lecturers who together have over 200 years of experience in this field.

Oct 26th 2026
5-12 Weeks
Data and Health Indicators in Public Health Practice (Coursera) Coursera
Johns Hopkins University

Data and Health Indicators in Public Health Practice (Coursera)

Epidemiology is often described as the cornerstone science in public health. Epidemiology in public health practice uses study design and analyses to identify causes in an outbreak situation, guides interventions to improve population health, and evaluates programs and policies. In this course, we'll define the role of the professional epidemiologist as it relates to public health services, functions, and competencies. With that foundation in mind, we'll introduce you to the problem solving methodology and demonstrate how it can be used in a wide variety of settings to identify problems, propose solutions, and evaluate interventions.

Nov 2nd 2026
4 Weeks
Global Health Policy (Coursera) Coursera
The University of Tokyo

Global Health Policy (Coursera)

In this course, learners will become familiar with principles and theories of global health problems, and major challenges and controversies in improving global population health as well as practical applications of quantitative methods to analyze and interpret issues and challenges for policy. Topics will include health and foreign policy, health governance, acute disease surveillance, non-communicable diseases, burden of disease, universal health coverage, health systems strengthening, health financing, and human resources for health and ageing.

Nov 2nd 2026
4 Weeks
Water Supply and Sanitation Policy in Developing Countries Part 1: Understanding Complex Problems (Coursera) Coursera
University of Manchester

Water Supply and Sanitation Policy in Developing Countries Part 1: Understanding Complex Problems (Coursera)

Our course explores what can be done to solve the complex problem that half a billion people worldwide do not have improved water supplies and two billion do not have improved sanitation. We look forward to you joining us. We want to help you develop the skills you need to address this major global challenge of the 21st century.

Oct 26th 2026
5-12 Weeks
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.

Oct 26th 2026
4 Weeks