Skip to contents

Shows the RMSEA of the S-X2 item-fit statistic for each item and marks items whose p-value falls below alpha.

Usage

gg_itemfit(x, alpha = 0.01, p_adjust = "none")

Arguments

x

a model returned by mirt::mirt().

alpha

significance level for flagging misfit.

p_adjust

p-value adjustment (see stats::p.adjust()).

Value

A ggplot object.

Examples

mod <- mirt(expand.table(LSAT7), 1, verbose = FALSE)
gg_itemfit(mod)