Extracting coefficients from glm()
Sometimes, we specifically care about model coefficients and their confidence intervals.
The coef()
function extracts coefficients and confint()
extracts the confidence intervals.
These functions work the same for both linear and generalized linear models.
The GLM you fit in the previous exercise (poisson_out
) has been loaded for you.
Diese Übung ist Teil des Kurses
Generalized Linear Models in R
Anleitung zur Übung
- Using
coef()
, extract the regression coefficients frompoisson_out
. - Using
confint()
, extract the confidence intervals for the regression coefficients frompoisson_out
.
Interaktive Übung
Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.
# Extract the regression coefficients
___
# Extract the confidence intervals
___