Skip to contents

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

Usage

Msm012(...)

Arguments

...

Passed unchanged to Msm011().

Value

The list returned by Msm011().

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))
Msm012(X, Z, y, D = diag(0.5, 5))$loglik
#> [1] -27.8156