lmList.groupedData {nlme} | R Documentation |
The response variable and primary covariate in formula(object)
are used to construct the linear model formula. This formula
and the groupedData
object are passed as the object
and
data
arguments to lmList.formula
, together with any other
additional arguments in the function call. See the documentation on
lmList.formula
for a description of that function.
## S3 method for class 'groupedData' lmList(object, data, level, subset, na.action, pool)
object |
a data frame inheriting from class |
data |
this argument is included for consistency with the generic function. It is ignored in this method function. |
level |
an optional integer specifying the level of grouping to be used when multiple nested levels of grouping are present. |
subset |
an optional expression indicating which subset of the rows of
|
na.action |
a function that indicates what should happen when the
data contain |
pool |
an optional logical value that is preserved as an attribute of the
returned value. This will be used as the default for |
a list of lm
objects with as many components as the number of
groups defined by the grouping factor. Generic functions such as
coef
, fixed.effects
, lme
, pairs
,
plot
, predict
, random.effects
, summary
,
and update
have methods that can be applied to an lmList
object.
groupedData
, lm
,
lme.lmList
, lmList
,
lmList.formula
fm1 <- lmList(Orthodont) summary(fm1)