Practice Activity: Regression
The dataset “mystery_animal.csv” contains the weights of a particular animal before and after a year of eating only roasted duck.
Compute a linear model to determine if the Duck Diet caused the animal to gain weight, lose weight, or neither.
Plot the residuals (observed value minus predicted value) of this model versus the x-variable. The function add_predictions()
from the “modelr” package may be useful to you.