## S3 method for class 'lme':
ranef(object, augFrame, level, data, which, FUN,
standard, omitGroupingFactor, subset, \dots)
lme
, representing
a fitted linear mixed-effects model.TRUE
, the returned
data frame is augmented with variables defined in data
; else,
if FALSE
, only the coefficients are returned. Defaults to
FALSE
.augFrame =
TRUE
. Defaults to the data frame used to fit object
.data
should be used in the augmentation of the
returned data frame. Defaults to all columns in data
.data
by groups. Group-invariant variables are always summarized by the
unique value that they assume within that gFALSE
.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 flevel
and,
optionally, other covariates summarized over groups. The returned
object inherits from classes random.effects.lme
and
data.frame
.lme
, coef.lme
, plot.ranef.lme
,
gsummary
fm1 <- lme(distance ~ age, Orthodont, random = ~ age | Subject)
ranef(fm1)
random.effects(fm1) # same as above
random.effects(fm1, augFrame = TRUE)
Run the code above in your browser using DataLab