View source: R/personfitPlot.r
personfitPlot | R Documentation |
This function takes a fitted mirt-model and visualizes person infit and outfit estimates. The function builds on mirt::itemfit()
. The basic idea is to visualize how many individuals in the sample do not show a response pattern that aligns with the suggested model. At best, the number of non-fitting response patterns is low (e.g., < 5%).
personfitPlot(model, std = TRUE, title = "Person Infit and Outfit Statistics")
model |
an object of class |
std |
logical value indicating whether standardized or non-standardized infit or outfit estimates should be used (leads to different cut-off values). |
title |
title for the plot (defaults to "Person Infit and Outfit Statistics") |
a ggplot
Linacre JM. (2002). What do Infit and Outfit, Mean-square and Standardized mean? Rasch Measurement Transactions, 16(2), p.878. https://www.rasch.org/rmt/rmt162f.htm
library(mirt)
library(ggmirt)
data <- expand.table(LSAT7)
(mod <- mirt(data, 1))
personfitPlot(mod, std = F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.