ranef.merModList | R Documentation |
Extract random-effects estimates for a merModList
## S3 method for class 'merModList'
ranef(object, ...)
object |
an object of a class of fitted models with
random effects, typically a
|
... |
some methods for these generic functions require additional arguments. |
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
.
a named, numeric vector of random-effects estimates.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.