residuals.varCov {statgenGxE} | R Documentation |
Extract residuals.
Description
Extract the residuals for the best model.
Usage
## S3 method for class 'varCov'
residuals(object, ...)
Arguments
object |
An object of class varCov |
... |
Not used. |
Value
A data.frame with residuals.
See Also
Other varCov:
fitted.varCov()
,
gxeVarCov()
,
plot.varCov()
,
report.varCov()
Examples
## Select the best variance-covariance model using asreml for modeling.
if (requireNamespace("asreml", quietly = TRUE)) {
geVarCov <- gxeVarCov(TD = TDMaize, trait = "yld", engine = "asreml")
## Extract residuals from the model.
residVarCov <- residuals(geVarCov)
head(residVarCov)
}
[Package statgenGxE version 1.0.8 Index]