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

View source: R/merList.R

ranef.merModListR 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 merMod object.

...

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)


merTools documentation built on May 29, 2024, 7:05 a.m.