Skip to contents

The same method as Msm010(), re-exported under this name; both run the same code.

Usage

Msm027(...)

Arguments

...

Passed unchanged to Msm010().

Value

The list returned by Msm010().

References

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

Examples

set.seed(11)
g <- rep(1:5, each = 4)
X <- cbind(1, rnorm(20)); Z <- model.matrix(~ factor(g) - 1)
y <- as.numeric(X %*% c(2, 1) + Z %*% rnorm(5, sd = 0.7) + rnorm(20))
Msm027(X, Z, y, D = diag(0.5, 5))$beta
#> [1] 1.5617975 0.8602308