Skip to contents

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

Examples

# \donttest{
## 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)
  }
# }