Learn R Programming

statgenGxE (version 1.0.9)

residuals.varCov: Extract residuals.

Description

Extract the residuals for the best model.

Usage

# S3 method for varCov
residuals(object, ...)

Value

A data.frame with residuals.

Arguments

object

An object of class varCov

...

Not used.

See Also

Other varCov: fitted.varCov(), gxeVarCov(), plot.varCov(), report.varCov()

Examples

Run this code
# \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)
  }
# }

Run the code above in your browser using DataLab