residuals.LmME: Residuals of a LmME model

View source: R/LmME.R

residuals.LmMER Documentation

Residuals of a LmME model

Description

Calculates the score residuals of an intercept term fixed at 0. In the case of an LmME model, this is equal to the residual of an LMM.

Usage

## S3 method for class 'LmME'
residuals(object, as.lm = FALSE, ...)

Arguments

object

An LmME object.

as.lm

If TRUE, return the residuals as in a normal linear mixed effects model.

...

Optional arguments (for consistency with generic)

Examples

data("sleepstudy", package = "lme4")
fit <- LmME(Reaction ~ Days + (Days | Subject), data = sleepstudy)
resid(fit)

tramME documentation built on July 2, 2024, 5:07 p.m.