Extract reStruct Grouping Formula
Usage
getGroupsFormula(object, asList)
Arguments
object
|
an object inheriting from class reStruct,
representing a random effects structure and consisting of a list of
pdMat objects.
|
asList
|
an optional logical value. If TRUE the returned
value with be a list of formulas; else, if FALSE the returned
value will be a one-sided formula. Defaults to FALSE.
|
Description
The names of the object components are used to construct a
one-sided formula, or a named list of formulas, depending on the value
of asList. The components of the returned list are ordered
from outermost to innermost level.Value
a one-sided formula, or a list of one-sided formulas, with the
grouping structure associated with object.Author(s)
Jose Pinheiro and Douglas BatesSee Also
reStruct, getGroupsExamples
library(lme)
rs1 <- reStruct(list(A = pdDiag(diag(2), ~age), B = ~1))
getGroupsFormula(rs1)