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

REextract

Extracts random effects


Description

Extracts random effect terms from an lme4 model

Usage

REextract(merMod)

Arguments

merMod

a merMod object from the lme4 package

Value

a data frame with the following columns

groupFctr

The name of the grouping factor associated with the random effects

groupID

The level of the grouping factor associated with the random effects

'term'

One column per random effect, the name is derived from the merMod

'term'_se

One column per random effect, the name is derived from the merMod

Examples

m2 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
rfx <- REextract(m2)
#Note the column names
head(rfx)

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.