Learn R Programming

tramME (version 1.0.7)

residuals.LmME: 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 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

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

Run the code above in your browser using DataLab