Začněte nyníZačněte zdarma

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

Zobrazit kurz

Pokyny k cvičení

  • Extrahuj informace o koeficientech modelu algeria_model jako přehledný datový rámec pomocí funkce tidy().
  • Extrahuj souhrnné statistiky modelu algeria_model pomocí funkce glance().

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
___
Upravit a spustit kód