Skip to contents

Formula: L = X_E beta_E + X beta + X_EM beta_EM + eps (eq. 7.3), the ordinal latent variable with a flat prior on the environment effects and a BRR/BayesA/BayesB/BayesC/BL prior on the marker and marker-by-environment effects. Blocks are stacked in the order printed in Table 7.6.

Usage

Msm092(n, X_E = NULL, X = NULL, X_EM = NULL)

Arguments

n

Number of rows to take from each block.

X_E

Environment design block.

X

Marker design block.

X_EM

Marker-by-environment design block.

Value

List with estimate (the total column count), design, widths, method.

References

Montesinos Lopez, Montesinos Lopez & Crossa (2022), Multivariate Statistical Machine Learning Methods for Genomic Prediction, Springer, eq. (7.3) p.219. DOI 10.1007/978-3-030-89010-0.

Examples

set.seed(16)
XE <- model.matrix(~ factor(rep(1:2, 5)) - 1)
X <- matrix(rnorm(20), 10, 2)
Msm092(n = 10, X_E = XE, X = X)$widths
#> $environments
#> [1] 2
#> 
#> $markers
#> [1] 2
#>