irtsim
Monte Carlo Simulation-Based Sample-Size Planning for Item Response Theory
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
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
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