Description Usage Arguments Details Value Author(s) See Also
View source: R/cross_validation_model_bh_GxE.R
cross_validation_model_bh_GxE
runs complete cross validation with Hierarchical Bayesian GxE model
1 2 | cross_validation_model_bh_GxE(data, variable, nb_iterations = 1e+05,
mc.cores = 1)
|
data |
The data frame on which the model will be run. It should have at least the following columns : c("year", "germplasm", "location", "block", "X", "Y", "..."), with "..." the variables. |
variable |
The variable on which runs the model |
nb_iterations |
Number of iterations of the MCMC |
mc.cores |
The number of cores used for parallelisation of the computing |
The convergence is not checked for each validation. If the parameters converge (cf check_model
), then it is assumed that the parameters in the cross validation converge as well.
The model is run on data sets where germplasms are on at least three environments so the smallest data set where the cross validation is run has germplasms on at least two environments.
Parallelization is done with the function parallel::mclapply
.
The function returns a data frame with real values and estimated values by cross validation
Pierre Riviere
model_bh_GxE
check_model
check_model.fit_model_bh_GxE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.