Learn R Programming

merTools (version 0.6.4)

ranef.merModList: Extract random-effects estimates for a merModList

Description

Extract random-effects estimates for a merModList

Usage

# S3 method for merModList
ranef(object, ...)

Value

a named, numeric vector of random-effects estimates.

Arguments

object

a merModList list fitted models with random effects

...

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.

Examples

Run this code
# \donttest{
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)
# }

Run the code above in your browser using DataLab