summaryPlot: A quick summary of IRT analyses

View source: R/summaryPlot.r

summaryPlotR Documentation

A quick summary of IRT analyses

Description

This function is essentially just a wrapper around several functions in this package and produces a summary of the most important aspects of an IRT model, including an item-person-map,test information curve, scale characteristic curve, and conditional reliability.

Usage

summaryPlot(model, theta_range = c(-4, 4), adj_factor = 0.05)

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.

Value

a plot grid as returned by cowplot::ggdraw()

Examples

library(mirt)
library(ggmirt)

# Simulate some data
data <- sim_irt(500, 10, seed = 123)

# Run IRT model with mirt
mod <- mirt(data, 1, itemtype = "2PL", verbose = FALSE)

summaryPlot(mod, theta_range = c(-4.5, 3.5), adj_factor = 1.5)


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