Augment the fitted values of each model
In this exercise you will prepare your four best and worst fitting models for further exploration by augmenting your model data with augment().
Questo esercizio fa parte del corso
Machine Learning in the Tidyverse
Istruzioni dell'esercizio
- Build the
best_augmenteddata frame by building augmented data frames and simplifying them withunnest()using thebest_fitdata frame. - Build the
worst_augmenteddata frame by building augmented data frames and simplifying them withunnest()using theworst_fitdata frame.
Esercizio pratico interattivo
Prova a risolvere questo esercizio completando il codice di esempio.
best_augmented <- best_fit %>%
# Build the augmented data frame for each country model
mutate(augmented = ___) %>%
# Expand the augmented data frames
___
worst_augmented <- worst_fit %>%
# Build the augmented data frame for each country model
mutate(augmented = ___) %>%
# Expand the augmented data frames
___