Description Usage Arguments Examples
Bayesian Multi-Output regression stacking for specific environment estimations
1 2 3 4 5 6 7 8 9 10 11 12 |
data |
|
testingEnv |
|
ETA |
|
covModel |
|
predictor_Sec_complete |
|
nIter |
|
burnIn |
|
thin |
|
progressBar |
|
digits |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data('MaizeToy')
phenoMaizeToy <- phenoMaizeToy[order(phenoMaizeToy$Env, phenoMaizeToy$Line),]
#Matrix design
LG <- cholesky(genoMaizeToy)
ZG <- model.matrix(~0 + as.factor(phenoMaizeToy$Line))
Z.G <- ZG %*% LG
#Linear Predictor
ETA <- list(Gen = list(X = Z.G, model = 'BRR'))
dataset <- phenoMaizeToy[, 2:5] #Must Include in the first column the environments
#Check predictive capacities of the model
pm <- BMORS_Env(dataset, testingEnv = 'EBU', ETA = ETA, covModel = 'BRR', nIter = 10000,
burnIn = 5000, thin = 2, progressBar = FALSE, digits = 3)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.