# NOT RUN {
## Fit model using lme4.
myModel1 <- fitTD(TD = TDHeat05, design = "ibd", traits = "yield",
what = "fixed", engine = "lme4")
## Summarize results.
summary(myModel1)
## Create base plots of the results.
plot(myModel1)
## Create a pdf report summarizing results.
# }
# NOT RUN {
report(myModel1, outfile = tempfile(fileext = ".pdf"), what = "fixed")
# }
# NOT RUN {
## Fit model using SpATS.
myModel2 <- fitTD(TD = TDHeat05, design = "res.rowcol", traits = "yield",
what = "fixed")
summary(myModel2)
## Create spatial plots of the results.
# }
# NOT RUN {
plot(myModel2, plotType = "spatial")
# }
# NOT RUN {
## Create a pdf report summarizing results.
# }
# NOT RUN {
report(myModel2, outfile = tempfile(fileext = ".pdf"), what = "fixed")
# }
# NOT RUN {
## Fit model using asreml.
if (requireNamespace("asreml", quietly = TRUE)) {
myModel3 <- fitTD(TD = TDHeat05, design = "res.rowcol", traits = "yield",
what = "fixed", engine = "asreml")
summary(myModel3)
# }
# NOT RUN {
report(myModel3, outfile = tempfile(fileext = ".pdf"), what = "fixed")
# }
# NOT RUN {
}
# }
Run the code above in your browser using DataLab