testInfoPlot: Plotting test information curve

View source: R/testInfoPlot.r

testInfoPlotR Documentation

Plotting test information curve

Description

This function takes a fitted mirt-model and visualizes test information curve.

Usage

testInfoPlot(
  model,
  theta_range = c(-4, 4),
  adj_factor = 3.5,
  title = "Test Information Curve"
)

Arguments

model

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

theta_range

range to be shown on the x-axis

adj_factor

adjustment factor for properly overlaying information and standard error.

title

title for the plot (defaults to "Item Characteristic Curves")

Value

a ggplot

Examples

library(mirt)
library(ggmirt)
data <- expand.table(LSAT7)
(mod <- mirt(data, 1))

testInfoPlot(mod)


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