
A prediction function for models with more than one variable to predict on
report_tables.RdThis function outputs the predictions for each factor for a single model. Each factor is put on a separate Excel sheet.
Value
list of data.frame
A list of data frames. The first data frame is the ANOVA for the model.
The remaining data frames are the prediction tables from the classify
object.
Examples
if (FALSE) { # requireNamespace("asreml", quietly = TRUE)
library(asreml)
model <- asreml(
fixed = yield ~ Variety + Nitrogen + Variety:Nitrogen,
random = ~idv(Blocks) + idv(Blocks):idv(Wplots),
residual = ~idv(units),
data = oats
)
report_tables(
model,
classify = "Variety:Nitrogen"
)
if (FALSE) { # \dontrun{
# Using it to write with writexl
tables <- excel_prediction_file(
model,
classify = "Variety:Nitrogen",
)
writexl::write_xlsx(x = tables, path = "Prediction_Tables.xlsx")
} # }
}