Package: tirt 0.4.0

Jiawei Xiong

tirt: Testlet Item Response Theory

Implementation of Testlet and Item Response Theory. A light-version yet comprehensive and streamlined framework for psychometric analysis using unidimensional and multidimensional Item Response Theory (IRT; Baker & Kim (2004) <doi:10.1201/9781482276725>) and Testlet Response Theory (TRT; Wainer et al., (2007) <doi:10.1017/CBO9780511618765>). Designed for researchers, this package supports the estimation of item and person parameters for a wide variety of models, including binary (i.e., Rasch, 2-Parameter Logistic, 3-Parameter Logistic) and polytomous (Partial Credit Model, Generalized Partial Credit Model, Graded Response Model) formats. It also supports the estimation of Testlet models (Rasch Testlet, 2-Parameter Logistic Testlet, 3-Parameter Logistic Testlet, Bifactor, Partial Credit Model Testlet, Graded Response), allowing users to account for local item dependence in bundled items. A key feature is the specialized support for combination use and joint estimation of item response model and testlet response model in one calibration. Beyond standard estimation via Marginal Maximum Likelihood with Expectation-Maximization (EM) or Joint Maximum Likelihood, the package also offers Bayesian estimation using priors with maximum a posteriori (MAP) method for unidimensional item response theory models. It also provides functions for scale linking and equating (Mean-Mean, Mean-Sigma, Stocking-Lord) to ensure comparability across mixed-format test forms. It also facilitates fixed-parameter calibration, enabling users to estimate person abilities with known item parameters or vice versa, which is essential for pre-equating studies and item bank maintenance. Comprehensive data simulation functions are included to generate synthetic datasets with complex structures, including mixed-model blocks and specific testlet effects, aiding in methodological research and study design validation. Researchers can try multiple simulation situations. A suite of post-estimation tools is also provided, including item and test information functions with the conditional standard error of measurement, summed-score to scale-score conversion tables (expected a posteriori, weighted likelihood, and maximum likelihood), person-fit and item-fit statistics, local dependence diagnostics (Yen's Q3), differential item functioning (M-H and logistic regression), reliability coefficients, test characteristic curves, and mixture (latent-class) item response models.

Authors:Jiawei Xiong [aut, cre], Cheng Tang [ctb], Qidi Liu [ctb]

tirt_0.4.0.tar.gz
tirt_0.4.0.zip(r-4.7-any)tirt_0.4.0.zip(r-4.6-any)
tirt_0.4.0.tar.gz(r-4.7-any)tirt_0.4.0.tar.gz(r-4.6-any)
tirt_0.4.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
tirt/json (API)

# Install 'tirt' in R:
install.packages('tirt', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))
Datasets:
  • ela1 - Mixed-Format English Language Arts
  • ela2 - Mixed-Format English Language Arts
  • ela3 - Large-Scale Mixed-Format English Language Arts
  • ela3_testmap - Large-Scale Mixed-Format English Language Arts

On CRAN:

Conda:

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

3.00 score 1 scripts 282 downloads 24 exports 21 dependencies

Last updated from:68c7a88789. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK158
source / vignettesOK294
linux-releaseOK178
windows-develOK129
windows-releaseOK128
wasm-releaseOK145

Exports:binary_irtdifequate_irtfix_personfixed_itemirt_trtitem_fititem_infold_statsmirt_binarymixed_irtmixture_irtperson_fitpolytomous_irtreliabilityscore_tablesim_irtsim_mirtsim_tirtsim_trttcctest_infotrt_binarytrt_poly

Dependencies:clicpp11dplyrgenericsgluegtoolslifecyclemagrittrpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Introduction to tirt: Testlet Item Response Theory

Last update: 2026-08-20
Started: 2026-02-06

Psychometric Tools in tirt: Information, Scoring, Fit, DIF, and Mixtures

Last update: 2026-08-20
Started: 2026-08-20

Readme and manuals

Help Manual

Help pageTopics
Binary (Dichotomous) Item Response Theory Estimation Using Likelihood or Bayesianbinary_irt
Differential Item Functioning (Mantel-Haenszel and Logistic Regression)dif
Mixed-Format English Language Arts (ELA) Assessment Data (Form 1)ela1
Mixed-Format English Language Arts (ELA) Assessment Data (Form 2)ela2
Large-Scale Mixed-Format English Language Arts (ELA) Assessment Data (Form 3)ela3
Large-Scale Mixed-Format English Language Arts (ELA) Assessment Data Testmap (Form 3 Testmap)ela3_testmap
Item Response Theory Equating / Linkingequate_irt
Fixed Person Calibration with or without Covariatefix_person
Fixed Item Calibrationfixed_item
Joint Item Response Theory and Testlet Response Theory Estimation (Dichotomous & Polytomous)irt_trt
Item Fit Statistics (Infit and Outfit)item_fit
Item Information Functionitem_info
Local Dependence Statistics (Yen's Q3)ld_stats
Multidimensional Binary Item Response Theory Estimationmirt_binary
Mixed Item Response Model Estimation (Dichotomous & Polytomous) with Prior Supportmixed_irt
Mixture Item Response Theory Model (Latent-Class Rasch / 2PL)mixture_irt
Person Fit Statistics (Standardized Log-Likelihood, lz)person_fit
Polytomous Item Response Theory Estimation Using Likelihood or Bayesianpolytomous_irt
Test Reliability Indicesreliability
Summed-Score to Theta Conversion Tablescore_table
Simulate Item Response Theory Datasim_irt
Simulate Multidimensional Item Response Theory Datasim_mirt
Simulate Mixed IRT and Testlet (TRT) Datasim_tirt
Simulate Testlet Response Theory Data (Vector Supported Version)sim_trt
Test and Item Characteristic Curves (Expected Scores)tcc
Test Information Function and Conditional Standard Errortest_info
Unidimensional Binary (Dichotomous) Testlet Response Theory Estimationtrt_binary
Unidimensional Polytomous Testlet Response Theory Estimationtrt_poly