# \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