Learn R Programming

mlmhelpr (version 0.1.1)

plausible_values: Plausible Values Range / Random Effect Confidence Intervals

Description

The plausible values range is useful for gauging the magnitude of variation around fixed effects. For more information, see Raudenbush and Bryk (2002, p. 71) and Hoffman (2015, p. 166).

Usage

plausible_values(x, pct = 95)

Value

A data frame specifying lower and upper bounds for each fixed effect.

Arguments

x

model produced using the lme4::lmer() function. This is an object of class merMod and subclass lmerMod.

pct

Percentile for the plausible value range, similar to a confidence interval. Must be specified as a whole number between 1 and 100 (e.g., 99, 95, 80). The 95% value range is used by default.

References

hoffman2015mlmhelpr

raudenbush2002mlmhelpr

Examples

Run this code
fit <- lme4::lmer(mathach ~ 1 + ses + catholic + (1|id),
data=hsb, REML=TRUE)

plausible_values(fit) #default is 95% range
plausible_values(fit, 99)

Run the code above in your browser using DataLab