Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ranef.merModList

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

Tools for Analyzing Mixed Effect Regression Models

v0.5.2
GPL (>= 2)
Authors
Jared E. Knowles [aut, cre], Carl Frederick [aut], Alex Whitworth [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.