| item_restscore_post | R Documentation |
Postprocesses the output of item_restscore_statistic
to produce a summary table and a slab plot comparing observed
item-restscore gamma associations to the posterior predictive
distribution.
item_restscore_post(item_restscore)
item_restscore |
A list as returned by
|
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 posterior predictive distribution.
The plot displays:
The posterior predictive distribution of replicated gamma values, shaded by 84\ interval levels.
The observed gamma values per draw, plotted as points on top of the slab.
Items where the observed gamma (orange) falls consistently outside the replicated distribution (grey) indicate poor fit in terms of item discrimination.
A list with two elements:
A tibble with the first 5
columns of the result table, rounded to 3 decimal places and
sorted by item.
A ggplot object showing
the posterior predictive distribution of replicated gamma
(grey filled slab) with the observed gamma values overlaid
as orange diamond points.
item_restscore_statistic,
infit_post.
## Not run:
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
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.