ranef.merModList {merTools} | R Documentation |
Extract random-effects estimates for a merModList
Description
Extract random-effects estimates for a merModList
Usage
## S3 method for class 'merModList'
ranef(object, ...)
Arguments
object |
an object of a class of fitted models with
random effects, typically a
|
... |
some methods for these generic functions require additional arguments. |
Details
Extract the estimates of the random-effects parameters from a list of
fitted merMod
models. Takes the mean of the individual ranef
objects for each of the component models in the merModList
.
Value
a named, numeric vector of random-effects estimates.
Examples
sim_list <- replicate(n = 10,
expr = sleepstudy[sample(row.names(sleepstudy), 180),],
simplify=FALSE)
fml <- "Reaction ~ Days + (Days | Subject)"
mod <- lmerModList(fml, data = sim_list)
ranef(mod)
[Package merTools version 0.6.2 Index]