View source: R/testInfoCompare.r
testInfoCompare | R Documentation |
This function takes two fitted mirt-model and visualizes test their test information curves on top of each other. This can be helpful for finding parallel tests.
testInfoCompare(
model1,
model2,
theta_range = c(-4, 4),
title = "Parallel Tests",
subtitle = "Test Information Curves"
)
model1 |
an object of class |
model2 |
an object of class |
title |
title for the plot |
subtitle |
subtitle for the plot |
a ggplot
library(mirt)
library(ggmirt)
data <- expand.table(LSAT7)
(mod1 <- mirt(data, 1))
(mod2 <- mirt(data[,1:4], 1))
testInfoCompare(mod1, mod2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.