testInfoCompare: Comparing test information curves of parallel tests

View source: R/testInfoCompare.r

testInfoCompareR Documentation

Comparing test information curves of parallel tests

Description

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.

Usage

testInfoCompare(
  model1,
  model2,
  theta_range = c(-4, 4),
  title = "Parallel Tests",
  subtitle = "Test Information Curves"
)

Arguments

model1

an object of class SingleGroupClass returned by the function mirt().

model2

an object of class SingleGroupClass

title

title for the plot

subtitle

subtitle for the plot

Value

a ggplot

Examples

library(mirt)
library(ggmirt)
data <- expand.table(LSAT7)
(mod1 <- mirt(data, 1))
(mod2 <- mirt(data[,1:4], 1))

testInfoCompare(mod1, mod2)


masurp/ggmirt documentation built on Oct. 14, 2023, 1:16 p.m.