residuals.LMMsolve: Residuals of an LMMsolve object.

View source: R/LMMsolve-class.R

residuals.LMMsolveR Documentation

Residuals of an LMMsolve object.

Description

Obtain the residuals from a mixed model fitted using LMMSolve.

Usage

## S3 method for class 'LMMsolve'
residuals(object, ...)

Arguments

object

an object of class LMMsolve

...

some methods for this generic require additional arguments. None are used in this method.

Value

A vector of residuals.

Examples

## Fit model on oats.data
data(oats.data)

## Fit simple model with only fixed effects.
LMM1 <- LMMsolve(fixed = yield ~ rep + gen,
                data = oats.data)

## Obtain fitted values.
residuals1 <- residuals(LMM1)


LMMsolver documentation built on Sept. 24, 2026, 5:09 p.m.