Title: | A Fast Solver for Henderson Mixed Model Equation via Row Operations |
---|---|
Description: | Consider the linear mixed model with normal random effects. A typical method to solve Henderson's Mixed Model Equations (HMME) is recursive estimation of the fixed effects and random effects. We provide a fast, stable, and scalable solver to the HMME without computing matrix inverse. See Kim (2017) <arXiv:1710.09663> for more details. |
Authors: | Jiwoong Kim [aut, cre] |
Maintainer: | Jiwoong Kim <[email protected]> |
License: | GPL (>= 3) |
Version: | 0.1.2 |
Built: | 2024-10-27 04:19:02 UTC |
Source: | https://github.com/cran/HMMEsolver |
Consider the linear mixed model with normal random effects,
where and
are vectors of fixed and random effects.
One of most popular methods to solve the Henderson's Mixed Model Equation
related to the problem is EM-type algorithm. Its drawback, however, comes from
repetitive matrix inversion during recursive estimation steps. Kim (2017) proposed
a novel method of avoiding such difficulty, letting the estimation more fast, stable, and
scalable.
Consider a linear mixed model with normal random effects,
where , or it can be equivalently expressed using matrix notation,
where is a known vector of observations,
and
design matrices for
and
respectively,
and
unknown vectors of fixed effects and random effects where
, and
an unknown vector random errors independent of random effects. Note that
does not need to be provided by a user since it is automatically created accordingly to the problem specification.
SolveHMME(X, Y, Mu, Lambda)
SolveHMME(X, Y, Mu, Lambda)
X |
an |
Y |
a length- |
Mu |
a length- |
Lambda |
a length- |
a named list containing
a length- vector of BLUE
.
a length- vector of BLUP
.
a length- vector of leverages.
Henderson CR, Kempthorne O, Searle SR, von Krosigk CM (1959). “The Estimation of Environmental and Genetic Trends from Records Subject to Culling.” Biometrics, 15(2), 192. ISSN 0006341X, doi:10.2307/2527669, http://www.jstor.org/stable/2527669?origin=crossref.
Robinson GK (1991). “That BLUP is a Good Thing: The Estimation of Random Effects.” Statistical Science, 6(1), 15–32. ISSN 0883-4237, doi:10.1214/ss/1177011926, http://projecteuclid.org/euclid.ss/1177011926.
McLean RA, Sanders WL, Stroup WW (1991). “A Unified Approach to Mixed Linear Models.” The American Statistician, 45(1), 54. ISSN 00031305, doi:10.2307/2685241, http://www.jstor.org/stable/2685241?origin=crossref.
Kim J (2017). “A Fast Algorithm for Solving Henderson's Mixed Model Equation.” ArXiv e-prints.
## small setting for data generation n = 100; m = 2; p = 2 nm = n*m; nmp = n*m*p ## generate artifical data X = matrix(rnorm(nmp, 2,1), nm,p) # design matrix Y = rnorm(nm, 2,1) # observation Mu = rep(1, times=nm) Lambda = rep(1, times=n) ## solve ans = SolveHMME(X, Y, Mu, Lambda)
## small setting for data generation n = 100; m = 2; p = 2 nm = n*m; nmp = n*m*p ## generate artifical data X = matrix(rnorm(nmp, 2,1), nm,p) # design matrix Y = rnorm(nm, 2,1) # observation Mu = rep(1, times=nm) Lambda = rep(1, times=n) ## solve ans = SolveHMME(X, Y, Mu, Lambda)