null_model: Compute intercept-only model for regression models

View source: R/null_model.R

null_modelR Documentation

Compute intercept-only model for regression models

Description

This function computes the null-model (i.e. (y ~ 1)) of a model. For mixed models, the null-model takes random effects into account.

Usage

null_model(model, verbose = TRUE, ...)

Arguments

model

A (mixed effects) model.

verbose

Toggle off warnings.

...

Arguments passed to or from other methods.

Value

The null-model of x

Examples


data(sleepstudy)
m <- lmer(Reaction ~ Days + (1 + Days | Subject), data = sleepstudy)
summary(m)
summary(null_model(m))


insight documentation built on Nov. 26, 2023, 5:08 p.m.