tracePlot | R Documentation |
This function takes a fitted mirt-model and the underlying data and visualizes item characteristic curves.
tracePlot(
model,
items = NULL,
theta_range = c(-4, 4),
title = "Item Characteristics Curves",
n.answers = 5,
facet = TRUE,
legend = FALSE
)
model |
an object of class |
items |
numerical vector indicating which items to plot (currently does not yet work for graded response models). |
theta_range |
range to be shown on the x-axis |
title |
title for the plot (defaults to "Item Characteristic Curves") |
n.answers |
In a graded response model, number of answer options (e.g., 5-point scale = 5) |
facet |
Should all items be shown in one plot, or each item received its individual facet? |
a ggplot
library(mirt)
library(ggmirt)
data <- expand.table(LSAT7)
(mod <- mirt(data, 1))
tracePlot(mod)
tracePlot(mod, items = c(1,2,3), theta_range = c(-5,5), facet = F, legend = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.