mkReTrmStructs: Construct random effects structures

Description Usage Arguments Value See Also

Description

Construct random effects structures from a formula and data.

Usage

1
mkReTrmStructs(splitFormula, data)

Arguments

splitFormula

results of splitForm (or a formula itself)

data

data

Value

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 model.matrix(linForm, data), where linForm | grpFac is the random effects formula defining the term.

grpFac

If present, the grouping factor associated with the structure, NA otherwise.

grpName

If present, the name of the grouping factor, NA otherwise.

addArgs

If present, any additional arguments passed to the special function in the formula.

See Also

setReTrm for initializing the structures as is required for model fitting, and splitForm for breaking the formula up into terms.


stevencarlislewalker/lme4ord documentation built on May 30, 2019, 4:43 p.m.