reml {gremlin} | R Documentation |
REML optimization algorithms for mixed-effect models.
Description
Evaluate the REML likelihood and algorithms for iterating to find maximum REML estimates.
Usage
reml(
nu,
skel,
thetaG,
sLc,
modMats,
W,
Bpinv,
nminffx,
nminfrfx,
rfxlvls,
rfxIncContrib2loglik,
thetaR = NULL,
tWW = NULL,
RHS = NULL
)
em(nuvin, thetaG, thetaR, conv, modMats, nminffx, sLc, ndgeninv, sln, r)
ai(nuvin, skel, thetaG, modMats, W, sLc, sln, r, thetaR = NULL, sigma2e = NULL)
gradFun(
nuvin,
thetaG,
modMats,
Cinv,
sln,
sigma2e = NULL,
r = NULL,
nminfrfx = NULL
)
Arguments
nu , nuvin |
A |
skel |
A skeleton for reconstructing the list of (co)variance parameters. |
thetaG , thetaR |
|
sLc |
A sparse |
modMats |
A |
W , tWW |
A sparse |
Bpinv |
A matrix inverse of the matrix containing the prior specification for fixed effects. |
nminffx , nminfrfx , rfxlvls |
|
rfxIncContrib2loglik |
A |
RHS |
A sparse |
conv |
A |
ndgeninv |
A |
sln , r |
Sparse |
sigma2e |
A |
Cinv |
A sparse |
Value
A list
or matrix
containing any of the previous
parameters described above, or the following that are in addition to or
instead of parameters above:
- loglik
The REML log-likelihood.
- tyPy,logDetC
Components of the REML log-likelihood derived from the Cholesky factor of the Coefficient matrix to the Mixed Model Equations.
- Cinv_ii
A vector containing the diagonal elements of the inverse of the Coefficient matrix to the Mixed Model Equations (i.e., the diagonal entries of
Cinv
).- AI
A
matrix
of values containing the Average Information matrix, or second partial derivatives of the likelihood with respect to the transformed (co)variance components (nu). The inverse of this matrix gives the sampling variances of these transformed (co)variance components.- dLdnu
A single column
matrix
of first derivatives of the transformed (co)variance parameters (nu) with respect to the log-Likelihood.