fitted.LMMsolve: Fitted values of an LMMsolve object.

View source: R/LMMsolve-class.R

fitted.LMMsolveR Documentation

Fitted values of an LMMsolve object.

Description

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

Usage

## S3 method for class 'LMMsolve'
fitted(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 fitted values.

Examples

## Fit model on john.alpha data from agridat package.
data(john.alpha, package = "agridat")

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

## Obtain fitted values.
fitted1 <- fitted(LMM1)


LMMsolver documentation built on Sept. 11, 2024, 7:31 p.m.