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

Value-Based Care: Organizational Competencies (Coursera) Coursera
University of Houston

Value-Based Care: Organizational Competencies (Coursera)

This course is designed to introduce you to the changes an organization will need to make to succeed in value-based care and payment. In previous courses in this specialization, you were introduced to the Accountable Care Learning Collaborative (ACLC). One of the models you will explore is the ACLC’s Accountable Care Atlas model. This model, along with additional information from the Health Care Payment Learning and Action Network (HCP-LAN), will help you begin to understand the challenges and rewards of transitioning to value-based care. In Module 2, you will explore those concepts through the lenses of three types of healthcare organizations, tying those examples back to types of value-based contracts.

Aug 24th 2026
3 Weeks
Epidemics (Coursera) Coursera
University of Hong Kong

Epidemics (Coursera)

“If history is our guide, we can assume that the battle between the intellect and will of the human species and the extraordinary adaptability of microbes will be never-ending.” Despite all the remarkable technological breakthroughs that we have made over the past few decades, the threat from infectious diseases has significantly accelerated. In this course, we will learn why this is the case by looking at the fundamental scientific principles underlying epidemics and the public health actions behind their prevention and control in the 21st century.

Aug 17th 2026
5-12 Weeks
Water: an essential resource (Coursera) Coursera
Politecnico di Milano

Water: an essential resource (Coursera)

This MOOC wants to communicate the challenge of protecting water and then human health from chemical and microbiological hazards, as well as the multidisciplinarity required by this challenge by providing some key elements about water quality, protection and remediation, sustainable drinking water production, online monitoring, and finally advanced computing for process control.

Aug 24th 2026
3 Weeks
Community Change in Public Health (Coursera) Coursera
Johns Hopkins University

Community Change in Public Health (Coursera)

In bringing about behavior change in public health, we often focus on the individual mother, student, or farmer. We should not forget the community structure and norms constrain for encouraging individual health behaviors. This course examines the community context of the changes needed to promote the public’s health. We begin by examining the various definitions of ‘community’ and the processes by which we ‘diagnose’ or seek to understand the structure and characteristics of different types of communities.

Aug 24th 2026
5-12 Weeks
Instructional Methods in Health Professions Education (Coursera) Coursera
University of Michigan

Instructional Methods in Health Professions Education (Coursera)

This course provides those involved in educating members of the health professions an asynchronous, interdisciplinary, and interactive way to obtain, expand, and improve their teaching skills. These skills can then be applied within their own professional context, with a variety of learners, extending across many stages.

Aug 24th 2026
5-12 Weeks
Experimentation for Improvement (Coursera) Coursera
McMaster University

Experimentation for Improvement (Coursera)

We are always using experiments to improve our lives, our community, and our work. Are you doing it efficiently? Or are you (incorrectly) changing one thing at a time and hoping for the best? In this course, you will learn how to plan efficient experiments - testing with many variables. Our goal is to find the best results using only a few experiments. A key part of the course is how to optimize a system.

Aug 17th 2026
5-12 Weeks
Systems Science and Obesity (Coursera) Coursera
Johns Hopkins University

Systems Science and Obesity (Coursera)

Systems science has been instrumental in breaking new scientific ground in diverse fields such as meteorology, engineering and decision analysis. However, it is just beginning to impact public health. This seminar is designed to introduce students to basic tools of theory building and data analysis in systems science and to apply those tools to better understand the obesity epidemic in human populations.

Aug 24th 2026
4 Weeks
Global Health Diplomacy (Coursera) Coursera
The State University of New York

Global Health Diplomacy (Coursera)

The field of global health is often thought of purely in medical or public health terms, but there are important geopolitical and policy dimensions of global health that underlie programmatic responses to global health challenges. By completing this course, learners will be able to explain the specific institutions and initiatives that are fundamental to current global health diplomacy activities and functions, and how these influence global health outcomes. Learners will further be able to summarize real-world examples where global health diplomacy either helped or limited global health outcomes, and explain the reasons for those outcomes.

Aug 24th 2026
5-12 Weeks
Antibióticos ¿cuándo, cómo y para qué? (Coursera) Coursera
Universidad Nacional Autónoma de México

Antibióticos ¿cuándo, cómo y para qué? (Coursera)

¿Qué es lo primero que haces cuándo te sientes enfermo? ¿Vas a la farmacia y le pides al boticario que te brinde un antibiótico que te “cure” rápidamente? ¿Tus familiares, amigos, conocidos, lo hacen? En este curso, aprenderás las razones por las cuales el uso inadecuado de antibióticos es perjudicial para tu salud y por qué este comportamiento ha dado lugar al fenómeno de salud pública denominado “resistencia bacteriana”.

Aug 24th 2026
4 Weeks
Drugs, drug use, drug policy and health (Coursera) Coursera
University of Geneva

Drugs, drug use, drug policy and health (Coursera)

This MOOC is the first of its kind, since it addresses critical issues related to drugs from a multidisciplinary, health and human rights-based approach. Throughout the course you will cover a range of questions including what are drugs and why they controlled? What are the benefits and harms of taking drugs? How public health policies can address drug use?

Aug 17th 2026
5-12 Weeks
Rastreamento de contato da COVID-19 (Coursera) Coursera
Johns Hopkins University

Rastreamento de contato da COVID-19 (Coursera)

A crise da COVID-19 criou uma necessidade sem precedentes de rastreamento de contato em todo o país, exigindo que milhares de pessoas aprendessem rapidamente as principais habilidades. As qualificações para os cargos de rastreamento de contato diferem em todo o país e no mundo, com alguns novos cargos abertos a indivíduos com diploma de ensino médio ou equivalente.

Aug 24th 2026
1 Week