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

Applying summary(), print(), and tidy() to glm

print() and summary() are two of the backbone R functions for examining models. These functions tells us about the basics model outputs. Using data from Louisville, KY, USA about the number of civilian fire injury victims per day, you will examine a linear regression's output and a Poisson regression's output.

In addition to the base R function, we will use the tidy function from the broom package. This creates a tidy output for each of the models. Note that broom needs to be installed and does not come with base R.

Bu egzersiz

Generalized Linear Models in R

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

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Build your linear and Poisson regression models
lm_out <- ___ 
poisson_out <- ___
Kodu Düzenle ve Çalıştır