Learn R Programming

LMMsolver (version 1.0.12)

fitted.LMMsolve: Fitted values of an LMMsolve object.

Description

Obtain the fitted values from a mixed model fitted using LMMSolve.

Usage

# S3 method for LMMsolve
fitted(object, ...)

Value

A vector of fitted values.

Arguments

object

an object of class LMMsolve

...

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

Examples

Run this code
## 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.
fitted1 <- fitted(LMM1)

Run the code above in your browser using DataLab