Description Usage Arguments Value See Also
Construct random effects structures from a formula and data.
1 | mkReTrmStructs(splitFormula, data)
|
splitFormula |
results of |
data |
data |
A list of random effects structures, each associated with
the terms in a generalized mixed model formula of roughly the
following form: (linForm1 | grpFac1) + (linForm2 | grpFac2)
+ ... + specialStruc(linForm3 | grpFac3) + ...
. Each such
structure may be unstructured with class 'unstruc' (indicating
standard 'lme4' structures, e.g. the first two terms above) or
class of same name as the function in the formula
(e.g. specialStruc
). Each structure also contains (at a
minimum) the following elements (although setReTrm
adds further structure):
modMat |
A raw model matrix for which the structure is
defined. This matrix is obtained by evaluating
|
grpFac |
If present, the grouping factor associated with the
structure, |
grpName |
If present, the name of the grouping factor,
|
addArgs |
If present, any additional arguments passed to the special function in the formula. |
setReTrm
for initializing the structures as
is required for model fitting, and splitForm
for
breaking the formula up into terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.