LoslegenKostenlos loslegen

lm vs. Poisson coefficients

A linear model and Poisson regression have been fit for you. In this exercise, you'll extract the coefficients for both models and compare them. In Step 3, you will need to exponentiate the results from the Poisson regression. This is needed because the Poisson coefficients are estimated on link-scale, not the raw data-scale.

Recall from the video that linear models intercepts are additive whereas Poisson regression intercepts are multiplicative.

Diese Übung ist Teil des Kurses

Generalized Linear Models in R

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Extract the coeffients from lm_out
lm_coef <- ___
lm_coef
Code bearbeiten und ausführen