plausible_values {mlmhelpr} | R Documentation |
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)
Arguments
x |
model produced using the |
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. |
Value
A data frame specifying lower and upper bounds for each fixed effect.
References
Hoffman L (2015). Longitudinal Analysis: Modeling within-Person Fluctuation and Change. Routledge. ISBN 978-0415876025.
Raudenbush SW, Bryk AS (2002). Hierarchical Linear Models: Applications and Data Analysis Methods. SAGE. ISBN 9780761919049.
Examples
fit <- lme4::lmer(mathach ~ 1 + ses + catholic + (1|id),
data=hsb, REML=TRUE)
plausible_values(fit) #default is 95% range
plausible_values(fit, 99)