## Select the best variance-covariance model using lme4 for modeling.
geVarCov <- gxeVarCov(TD = TDMaize, trait = "yld")
## Summarize results.
summary(geVarCov)
# \donttest{
## Create a pdf report summarizing the results.
report(geVarCov, outfile = tempfile(fileext = ".pdf"))
# }
# \donttest{
if (requireNamespace("asreml", quietly = TRUE)) {
## Select the best variance-covariance model using asreml for modeling.
## Use BIC as a goodness-of-fit criterion.
geVarCov2 <- gxeVarCov(TD = TDMaize, trait = "yld", engine = "asreml",
criterion = "BIC")
summary(geVarCov2)
## Plot a heatmap of the correlation matrix for the best model.
plot(geVarCov2)
}
# }
Run the code above in your browser using DataLab