Exercise

Extracting leverage and influence

In the last few exercises you explored which observations had the highest leverage and influence. Now you'll extract those values from an augmented version of the model, and visualize them.

mdl_price_vs_dist is available. dplyr, ggplot2 and ggfortify are loaded.

Instructions 1/3

undefined XP
    1
    2
    3
  • Augment mdl_price_vs_dist, then arrange observations by descending influence (.hat), and get the head of the results.