Apply Solve to an reStruct Object
DESCRIPTION:
Solve
is applied to each
pdMat
component of
a
,
which results in inverting the positive-definite matrices they
represent.
USAGE:
solve(a, b, tol)
REQUIRED ARGUMENTS:
- a
-
an object inheriting from class
reStruct
,
representing a random effects structure and consisting of a list of
pdMat
objects.
OPTIONAL ARGUMENTS:
- b
-
this argument is only included for consistency with the
generic function and is not used in this method function.
- tol
-
an optional numeric value for the tolerance used in the
numerical algorithm. Defaults to
1e-7
.
VALUE:
an
reStruct
object similar to
a
, but with the
pdMat
components representing the inverses of the
matrices represented by the components of
a
.
SEE ALSO:
,
EXAMPLES:
rs1 <- reStruct(list(A = pdSymm(diag(1:3), form = ~Score),
B = pdDiag(2 * diag(4), form = ~Educ)))
solve(rs1)