lmList Fit from a groupedData Object
Usage
lmList(object, data, groups, level, na.action, pool)
Arguments
object
|
a data frame inheriting from class{groupedData}.
|
data
|
this argument is included for consistency with the generic
function. It is ignored in this method function.
|
other arguments
|
identical to the arguments in the generic
function call. See the documentation on lmList.
|
Description
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.Value
a list of lm objects with as many components as the number of
groups defined by groups. 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.See Also
groupedData, lm, lme.lmList,
lmList.formulaExamples
library(lme)
data(Orthodont)
fm1 <- lmList(Orthodont)