coef.lmList | R Documentation |
The coefficients of each 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, ...)
object |
an object inheriting from class |
augFrame |
an optional logical value. If |
data |
an optional data frame with the variables to be used for
augmenting the returned data frame when |
which |
an optional positive integer or character vector
specifying which columns of the data frame used to produce |
FUN |
an optional summary function or a list of summary functions
to be applied to group-varying variables, when collapsing the data
by groups. Group-invariant variables are always summarized by the
unique value that they assume within that group. If |
omitGroupingFactor |
an optional logical value. When |
... |
some methods for this generic require additional arguments. None are used in this method. |
a data frame inheriting from class "coef.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"
.
JosÃ© Pinheiro and Douglas Bates bates@stat.wisc.edu
Pinheiro, J. C. and Bates, D. M. (2000), Mixed-Effects Models in S and S-PLUS, Springer, New York, esp. pp. 457-458.
lmList
, fixed.effects.lmList
,
ranef.lmList
,
plot.ranef.lmList
, gsummary
fm1 <- lmList(distance ~ age|Subject, data = Orthodont)
coef(fm1)
coef(fm1, augFrame = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.