Session Ready
Exercise

Multivariate regression in R

Regression analysis also lets you trace the relationship between a y variable and more than one x variable. In this lesson, you will see if you can learn anything extra about the election by using county-level income data.

Instructions
100 XP
  • Building on the linear model you made in the previous exercise, add the per_capita_income variable to the lm() model call
  • Inspect the model output with summary().