Exercise

Computing fitted/predicted values & residuals

Now say you want to repeat this for all 463 instructors in evals. Doing this manually as you just did would be long and tedious, so as seen in the video, let's automate this using the get_regression_points() function.

Furthemore, let's unpack its output.

Instructions 1/3

undefined XP
    1
    2
    3
  • Let's once again get the regression table for model_score_2.
  • Apply get_regression_points() from the moderndive package to automate making predictions and computing residuals.