Exercise

Visualizing auto performance uncertainty

Confidence intervals are a very important visual indicator of model fit. Here you'll practice changing the appearance of confidence intervals and transforming the scale of partial effects plots.

Instructions

100 XP
  • Plot the model (mod) that uses the mpg data, plotting only the partial effect of weight. Make the confidence interval shaded and "hotpink" in color.
  • Make another plot of the weight partial effect, this time shifting the scale by the value of the intercept using the shift argument, and including the uncertainty of the model intercept using the seWithMean argument.