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

REquantile

Identify group level associated with RE quantile


Description

For a user specified quantile (or quantiles) of the random effect terms in a merMod object. This allows the user to easily identify the observation associated with the nth percentile effect.

Usage

REquantile(merMod, quantile, groupFctr, term = "(Intercept)")

Arguments

merMod

a merMod object with one or more random effect levels

quantile

a numeric vector with values between 0 and 100 for quantiles

groupFctr

a character of the name of the random effect grouping factor to extract quantiles from

term

a character of the random effect to extract for the grouping factor specified. Default is the intercept.

Value

a vector of the level of the random effect grouping term that corresponds to each quantile

Examples

fm1 <- lmer(Reaction ~ Days + (Days | Subject), sleepstudy)
REquantile(fm1, quantile = 0.25, groupFctr = "Subject")
REquantile(fm1, quantile = 0.25, groupFctr = "Subject", term = "Days")

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.