plausible_values: Plausible Values Range / Random Effect Confidence Intervals

View source: R/plausible_values.R

plausible_valuesR 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 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.

Value

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

References

\insertRef

hoffman2015mlmhelpr

\insertRef

raudenbush2002mlmhelpr

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)


lrocconi/mlmhelpr documentation built on Dec. 9, 2024, 10:58 p.m.