REextract | R Documentation |
Extracts random effect terms from an lme4 model
REextract(merMod)
merMod |
a merMod object from the lme4 package |
a data frame with the following columns
The name of the grouping factor associated with the random effects
The level of the grouping factor associated with the random effects
One column per random effect, the name is derived from the merMod
One column per random effect, the name is derived from the merMod
m2 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
rfx <- REextract(m2)
#Note the column names
head(rfx)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.