conRelPlot: Plotting conditional reliability

View source: R/conRelPlot.r

conRelPlotR Documentation

Plotting conditional reliability

Description

This function takes a fitted mirt-model and visualizes a conditional reliability curve. Heavily inspired by code from Phil Chalmers (author or 'mirt')

Usage

conRelPlot(
  model,
  theta_range = c(-4, 4),
  color = "red",
  title = "Conditional Reliability"
)

Arguments

model

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

theta_range

range to be shown on the x-axis

color

color of the line

title

title for the plot (defaults to "Conditional Reliability")

Value

a ggplot

Examples

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

conRelPlot(mod)

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