knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
The function check_design_met
helps us to check the quality of the data and
also to identify the experimental design of the trials. This works as a quality
check or quality control before we fit any model.
library(agriutilities) library(agridat) data(besag.met) dat <- besag.met results <- check_design_met( data = dat, genotype = "gen", trial = "county", traits = "yield", rep = "rep", block = "block", col = "col", row = "row" )
print(results)
The results of the previous function are used in single_trial_analysis()
to
fit single trial models.
obj <- single_trial_analysis(results, progress = FALSE) print(obj)
The results of the previous function are used in met_analysis()
to
fit multi-environmental trial models.
met_results <- met_analysis(obj) print(met_results)
if (requireNamespace("asreml", quietly = TRUE)) { met_results <- met_analysis(obj) print(met_results) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.