lm object in the object list are
extracted and organized into a data frame, with rows corresponding to
the lm components and columns corresponding to the
coefficients. Optionally, the returned data frame may be augmented
with covariates summarized over the groups associated with the
lm components.## S3 method for class 'lmList':
coef(object, augFrame, data, which, FUN,
omitGroupingFactor, \dots)lmList, representing
a list of lm objects with a common model.TRUE, the returned
data frame is augmented with variables defined in the data frame used
to produce object; else, if FALSE, only the coefficients
are returned. Defaults to augFrame =
TRUE. Defaults to the data frame used to fit object.object
should be used in the augmentation of the returned data
frame. Defaults to all variables in the data.TRUE
the grouping factor itself will be omitted from the group-wise
summary of data but the levels of the grouping factor will
continue to be used as the row names for the returned data fcoef.lmList with the estimated
coefficients for each lm component of object and,
optionally, other covariates summarized over the groups corresponding
to the lm components. The returned object also inherits from
classes ranef.lmList and data.frame.lmList, fixed.effects.lmList,
ranef.lmList,
plot.ranef.lmList, gsummaryfm1 <- lmList(distance ~ age|Subject, data = Orthodont)
coef(fm1)
coef(fm1, augFrame = TRUE)Run the code above in your browser using DataLab