Learn R Programming

merTools (version 0.1.0)

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 [object Object],[object Object],[object Object],[object Object]

Examples

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

Run the code above in your browser using DataLab