Přehledná extrakce statistik modelu
V tomto cvičení použiješ funkce tidy() a glance() k přehledné extrakci informací z modelu algeria_model.
Pro lineární model tidy() extrahuje koeficienty modelu, zatímco glance() vrací souhrnné statistiky, jako je \(R^2\).
Toto cvičení je součástí kurzu
Machine Learning in the Tidyverse
Pokyny k cvičení
- Extrahuj informace o koeficientech modelu
algeria_modeljako přehledný datový rámec pomocí funkcetidy(). - Extrahuj souhrnné statistiky modelu
algeria_modelpomocí funkceglance().
Interaktivní cvičení na vyzkoušení si v praxi
Vyzkoušejte si toto cvičení dokončením tohoto ukázkového kódu.
library(broom)
# Extract the coefficients of the algeria_model as a data frame
___
# Extract the statistics of the algeria_model as a data frame
___