| lmeRep-class {Matrix} | R Documentation |
lme models representation
Description
A representation of a linear mixed-effects model using a
combination of sparse, symmetric, column-oriented matrices and dense matrices.
Objects from the Class
Objects can be created by calls of the form new("lmeRep", ...)
or, more commonly, via the lme1 function.
Slots
Omega:- A list of numeric matrices providing the
components of symmetric, positive-definite matrix Omega. Only the
upper triangle of each component is used and stored.
D:- A list of the diagonal factors (lower triangle) in the
LDL' decomposition of Z'Z+W.
T:- A list of objects of class
cscMatrix
providing the pairwise cross-tabulation of the grouping factors.
ZZx:- A list of arrays comprising ZtZ
RXX:- A matrix which is the (augmented) RXX component
or the corresponding component from the inverse of Z'Z+W
RZX:- A matrix which is the (augmented) RZX component
or the corresponding component from the inverse of Z'Z+W
XtX:- The original X'X matrix
ZtX:- The original Z'X matrix
cnames:- Column names of the model matrices.
deviance:- Numeric vector of length 2 containing the
deviance corresponding to the maximum likelihood (ML) and REML
criteria. This slot's contents are current if
status$factored is TRUE.
devComp:- Numeric vector of length 4 giving the
components used to calculate the deviance. This slot's contents
are current if
status$factored is TRUE.
levels:- List of the levels of the grouping factors
nc:- Integer vector with the number of columns in
(augmented) model matrices and the number of observations in the
model frame.
status:- Logical vector of length 2 indicating if the
object has been factored and if the factorization has been
inverted.
Methods
- chol
signature(x = "lmeRep", pivot = "ANY"): Factor
the matrix Z'Z+W
- coef
signature(object = "lmeRep"): Extract the
parameters that determine the Omega matrices. The optional
logical argument unconstr determines the constrained or
unconstrained parameterization.
- coef<-
signature(object = "lmeRep", value = "numeric"): Assign the
parameters that determine the Omega matrices. The optional
logical argument unconstr determines the constrained or
unconstrained parameterization.
- solve
signature(a = "lmeRep", b = "missing"): Invert
the decomposed matrices.
See Also
sscCrosstab-class, sscMatrix-class,
tscMatrix-class