View source: R/LMMsolve-class.R
residuals.LMMsolve | R Documentation |
Obtain the residuals from a mixed model fitted using LMMSolve.
## S3 method for class 'LMMsolve'
residuals(object, ...)
object |
an object of class LMMsolve |
... |
some methods for this generic require additional arguments. None are used in this method. |
A vector of residuals.
## 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.
residuals1 <- residuals(LMM1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.