Skip to content

irtsim

Monte Carlo Simulation-Based Sample-Size Planning for Item Response Theory

v0.2.0 · Jun 27, 2026 · GPL (>= 3)

Description

Provides a pipeline application programming interface (API) for Monte Carlo simulation-based sample-size planning in item response theory (IRT). Implements the 10-decision framework from Schroeders and Gnambs (2025) <doi:10.1177/25152459251314798> as a three-step workflow: specify the data-generating model with irt_design(), add study conditions with irt_study(), and run simulations with irt_simulate(). Supports one-parameter logistic (1PL), two-parameter logistic (2PL), three-parameter logistic (3PL), graded response (GRM), partial credit (PCM), and generalized partial credit (GPCM) models with missing-completely-at-random (MCAR), missing-at-random (MAR), booklet, and linking missingness mechanisms. Results include mean squared error (MSE), bias, root mean squared error (RMSE), standard error (SE), and coverage criteria with summary and plot methods.

Downloads

181

Last 30 days

23097th

594

Last 90 days

594

Last year

Trend: -49% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [182s/195s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard testthat setup.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do your testing?
...[truncated]...
             └─base::sink(file = file, append = append, type = "output", split = split)
   10.                   └─base::file(file, if (append) "a" else "w")
  
  [ FAIL 1 | WARN 7 | SKIP 3 | PASS 1488 ]
  Error:
  ! Test failures.
  Execution halted
OK 4 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 24, 2026

Dependency Network

Dependencies Reverse dependencies cli future.apply ggplot2 mirt rlang irtsim

Version History

3 tracked
updated 0.2.0 ← 0.1.2 diff Jun 27, 2026
updated 0.1.2 ← 0.1.1 diff May 5, 2026
new 0.1.1 Apr 23, 2026