Question: what is the difference between fitted and predicted values?
Answer: The fitted function returns the y-hat values associated with the data used to fit the model. The predict function returns predictions for a new set of predictor variables.