PS06: Multiple Regression
Overview
Fit and interpret multiple regression models with both numerical and categorical explanatory variables, including interaction effects.
Read Chapter 6 of ModernDive before attempting this problem set.
Download
Download the problem set template, open it in RStudio, and complete the exercises directly in the document.
Setup
Run this at the top of your document to install and load the required packages:
if (!require(pacman)) install.packages("pacman")
pacman::p_load(tidyverse, moderndive, broom)Exercises
PS06a: One numerical and one categorical predictor
Fit a parallel slopes model.
PS06b: Interaction models
Fit a model with an interaction term between predictors.
When you are done, render to HTML and submit on Moodle. Name your file PS06_yourname.html.