Compute intercept-only model for regression models
This function computes the null-model (i.e. (y ~ 1)
) of
a model. For mixed models, the null-model takes random effects into account.
null_model(model, verbose = TRUE, ...)
model |
A (mixed effects) model. |
verbose |
Toggle off warnings. |
... |
Arguments passed to or from other methods. |
The null-model of x
if (require("lme4")) { data(sleepstudy) m <- lmer(Reaction ~ Days + (1 + Days | Subject), data = sleepstudy) summary(m) summary(null_model(m)) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.