lmList.groupedData: lmList Fit from a groupedData Object
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.Usage
## S3 method for class 'groupedData':
lmList(object, data, level, subset, na.action, pool)
Value
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.Examples
Run this codedata(Orthodont)
fm1 <- lmList(Orthodont)
summary(fm1)
Run the code above in your browser using DataLab