Extract lmList Object Grouping Formula
Usage
getGroupsFormula(object, asList)
Arguments
object
|
an object inheriting from class lmList , representing
a list of lm objects with a common model.
|
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
A formula representing the grouping factor determining the
partitioning of the observations used to produce the lm
components of object
is obtained and returned as a list with a
single component, or as a one-sided formula.Value
a one-sided formula, or a list with a single one-sided formula,
representing the grouping factor corresponding to the lm
components of object
.Author(s)
Jose Pinheiro and Douglas BatesSee Also
lmList
, getGroups.lmList
Examples
library(lme)
data(Orthodont)
fm1 <- lmList(distance ~ age, Orthodont, groups = ~Subject)
getGroupsFormula(fm1)