Postprocesses the output of item_restscore_statistic
to produce a summary table and a slab plot comparing observed
item-restscore gamma associations to the distribution of gamma in
datasets replicated conditional on the total scores.
Arguments
- item_restscore
A list as returned by
item_restscore_statistic, with elementsresultanddraws. The first column of both is the item identifier.
Details
The item-restscore gamma association measures the strength of the relationship between each item's responses and the rest score (total score excluding that item). Under good fit, the observed gamma should fall within the distribution of replicated gamma.
The plot displays:
- Grey slab
The distribution of replicated gamma values, shaded at the 84% and 95% interval levels.
- Orange diamond
The observed gamma.
Items where the observed gamma (orange) falls outside the
replicated distribution (grey) indicate poor fit in terms of
item discrimination. See item_restscore_statistic for
the definitions of the summary columns.
Examples
if (FALSE) { # \dontrun{
library(brms)
library(ggplot2)
# Assuming fit_pcm is a fitted brmsfit object
irs <- item_restscore_statistic(fit_pcm)
result <- item_restscore_post(irs)
result$summary
result$plot
} # }