Chapter 7: Linear regression with R

This chapter demonstrates how to fit linear models in R. You'll learn about how to fitting simple linear regression, models with categorical variables and interaction effects, and visualising models with ggplot2.

1Simple linear regression

2Practice extracting model estimates

3Multiple linear regression

4Test your knowledge

5Regression with categorical variables

6Practice modelling with categorical variables

7Regression models with interaction effects

8Visualising regression models

About this course

A website with materials to help you learn R and use it to explore data. No prior experience in programming, statistics, or data is required to work through these materials. These materials were developed to prepare our students for our courses that expect some familiarity of R and data analysis.

About us

Monash University Logo

This course is brought to you by the team at Monash University, Department of Econometrics and Business Statistics. You can find the full list of contributors in the link 'Contributors' at the footer of this site.