Module 2: Linear Regression

Topic: Simple and multiple linear regression, residuals, predictions, R², F-statistics, interactions.

Learning Objectives

  • Fit linear models with lm()
  • Interpret coefficients, R², and F-statistics
  • Visualize regression lines and residuals
  • Understand interaction terms

Slides

R Code

Data

Key Packages

library(ggplot2)
library(plotly)

Assignment

HW2: Linear Regression — due Module 3 Wednesday. Submit on Canvas.