Linear Regression in R for Public Health
Keep adding new skills with 10,000+ programs for $239 (usually $399). Save now.
Linear Regression in R for Public Health
This course is part of Statistical Analysis with R for Public Health Specialization
Instructors: Alex Bottle
18,584 already enrolled
Included with
Ask Coursera
531 reviews
Recommended experience
531 reviews
Recommended experience
What you'll 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
Skills you'll gain
- Exploratory Data Analysis
- Statistical Methods
- Data Analysis
- Biostatistics
- Regression Analysis
- Data Import/Export
- Model Evaluation
- Statistical Analysis
- Descriptive Analytics
- Statistical Modeling
- Descriptive Statistics
- Probability & Statistics
- Correlation Analysis
- Model Training
- Predictive Modeling
- Data Manipulation
Tools you'll learn
Details to know
See how employees at top companies are mastering in-demand skills
Build your subject-matter expertise
- Learn new concepts from industry experts
- Gain a foundational understanding of a subject or tool
- Develop job-relevant skills with hands-on projects
- Earn a shareable career certificate
There are 4 modules in this course
Welcome to Linear Regression in R for Public Health!
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. 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.
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.
What's included
7 videos9 readings5 assignments2 discussion prompts1 plugin
7 videos•Total 34 minutes
- Welcome to the Course•5 minutes
- Pearson’s Correlation Part I•4 minutes
- Pearson’s Correlation Part II•6 minutes
- Intro to Linear Regression: Part I•5 minutes
- Intro to Linear Regression: Part II•3 minutes
- Linear Regression and Model Assumptions: Part I•6 minutes
- Linear Regression and Model Assumptions: Part II•5 minutes
9 readings•Total 110 minutes
- About Imperial College London & the Team•10 minutes
- How to be successful in this course•10 minutes
- Grading policy•10 minutes
- Data set and Glossary•10 minutes
- Additional Reading•10 minutes
- Linear Regression Models: Behind the Headlines•5 minutes
- Linear Regression Models: Behind the Headlines: Written Summary•20 minutes
- Warnings and precautions for Pearson's correlation•20 minutes
- Introduction to Spearman correlation•15 minutes
5 assignments•Total 110 minutes
- Correlations•40 minutes
- Spearman Correlation•20 minutes
- End of Week Quiz•20 minutes
- Linear Regression Models: Behind the Headlines•10 minutes
- Practice Quiz on Linear Regression•20 minutes
2 discussion prompts•Total 25 minutes
- Nice to meet you!•10 minutes
- Linear Regression Models•15 minutes
1 plugin•Total 10 minutes
- Complete our short pre-course survey•10 minutes
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.
What's included
3 videos8 readings2 assignments3 discussion prompts
3 videos•Total 11 minutes
- Introduction to Week 2•2 minutes
- Fitting the linear regression•4 minutes
- Multiple Regression•4 minutes
8 readings•Total 125 minutes
- Recap on installing R•10 minutes
- Assessing distributions and calculating the correlation coefficient in R •10 minutes
- Feedback•10 minutes
- How to fit a regression model in R•10 minutes
- Feedback•15 minutes
- Fitting the Multiple Regression in R•30 minutes
- Feedback•10 minutes
- Summarising correlation and linear regression•30 minutes
2 assignments•Total 40 minutes
- Linear Regression•20 minutes
- End of Week Quiz•20 minutes
3 discussion prompts•Total 40 minutes
- Practice with R: Why Spearman's and Pearson's may differ slightly•10 minutes
- Practice with R: Linear Regression•15 minutes
- Practice with R: Repeating the Regression Model•15 minutes
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.
What's included
4 videos9 readings2 assignments
4 videos•Total 17 minutes
- Introduction to Key Dataset Features: Part I•4 minutes
- Introduction to Key Dataset Features: Part II•3 minutes
- Interactions between binary variables•5 minutes
- Interactions between binary and continuous variables•5 minutes
9 readings•Total 175 minutes
- How to assess key features of a dataset in R•20 minutes
- How to check your data in R•10 minutes
- Good Practice Steps•20 minutes
- Practice with R: Run a Good Practice Analysis•30 minutes
- Practice with R: Run Multiple Regression•30 minutes
- Feedback•10 minutes
- Practice with R: Running and interpreting a multiple regression•30 minutes
- Feedback•15 minutes
- Additional Reading•10 minutes
2 assignments•Total 40 minutes
- Fitting and interpreting model results•20 minutes
- Interpretation of interactions•20 minutes
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.
What's included
5 videos7 readings2 assignments2 discussion prompts1 plugin
5 videos•Total 16 minutes
- Intro to Model Development•3 minutes
- Variable Selection•4 minutes
- Developing a Model Building Strategy•6 minutes
- Summary of developing a Model Building Strategy•1 minute
- Summary of Course•2 minutes
7 readings•Total 70 minutes
- Feedback•10 minutes
- Further details of limitations of stepwise•10 minutes
- How many predictors can I include?•10 minutes
- Practice with R: Developing your model•0 minutes
- Practice with R: Fitting the final model•10 minutes
- Feedback on developing the model•10 minutes
- Final R Code•20 minutes
2 assignments•Total 40 minutes
- Problems with automated approaches•20 minutes
- End of Course Quiz•20 minutes
2 discussion prompts•Total 25 minutes
- Selecting an outcome; writing a research question•15 minutes
- What have you found?•10 minutes
1 plugin•Total 15 minutes
- Post-course Survey•15 minutes
Earn a career certificate
Add this credential to your LinkedIn profile, resume, or CV. Share it on social media and in your performance review.
Instructors
Offered by
Explore more from Public Health
- Status: Free TrialI
Imperial College London
Course
- Status: Free TrialU
University of Michigan
Course
- Status: Free TrialI
Imperial College London
Course
- Status: Free TrialJ
Johns Hopkins University
Course
Why people choose Coursera for their career
Learner reviews
- 5 stars
82.48%
- 4 stars
13.74%
- 3 stars
2.25%
- 2 stars
1.12%
- 1 star
0.37%
Showing 3 of 531
Reviewed on Feb 27, 2021
The course was an excellent utilisation of time. I am looking forward to explore further and utilise the skills I acquired.
Reviewed on Sep 11, 2023
This is is an excellent course! Thank you for providing it to us online, and please, I look forward to have access to more advance courses on statistical analysis for public health from ICL!
Reviewed on Oct 29, 2020
Great step by step explanation of the linear regression model-building process. Very clear. Also highlights pitfalls to avoid.
Frequently asked questions
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
Yes. In select learning programs, you can apply for financial aid or a scholarship if you can’t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, you’ll find a link to apply on the description page.
More questions
Financial aid available,
