BaşlayınÜcretsiz Başlayın

Extracting model statistics tidily

In this exercise, you will use the tidy() and glance() functions to extract information from algeria_model in a tidy manner.

For a linear model, tidy() extracts the model coefficients while glance() returns the model statistics such as the \(R^2\).

Bu egzersiz

Machine Learning in the Tidyverse

kursunun bir parçasıdır
Kursu Görüntüle

Egzersiz talimatları

  • Extract the coefficient information as a tidy data frame of the algeria_model using tidy().
  • Extract the model statistics of algeria_model using glance().

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

library(broom)

# Extract the coefficients of the algeria_model as a data frame
___

# Extract the statistics of the algeria_model as a data frame
___
Kodu Düzenle ve Çalıştır