Package: bigIRT 0.2.0

Charles Driver

bigIRT: Item Response Theory for Large Sparse Data

Fits binary item response theory (IRT) models for large and sparse data in long format, by marginal maximum likelihood with a Laplace approximation to the integral over person abilities, or by the joint posterior mode over items and persons. Supports 1PL to 4PL models, multidimensional and confirmatory loading structures with an estimated latent correlation, covariate effects on ability and on each item parameter, empirical-Bayes prior adaptation, and post-estimation tools for information, reliability, item fit, held-out prediction and simulation.

Authors:Charles Driver [aut, cre]

bigIRT_0.2.0.tar.gz
bigIRT_0.2.0.zip(r-4.7-x86_64)bigIRT_0.2.0.zip(r-4.7-arm64)bigIRT_0.2.0.zip(r-4.6-x86_64)bigIRT_0.2.0.zip(r-4.6-arm64)bigIRT_0.2.0.zip(r-4.5-x86_64)
bigIRT_0.2.0.tgz(r-4.6-x86_64)bigIRT_0.2.0.tgz(r-4.6-arm64)bigIRT_0.2.0.tgz(r-4.5-x86_64)bigIRT_0.2.0.tgz(r-4.5-arm64)
bigIRT_0.2.0.tar.gz(r-4.7-arm64)bigIRT_0.2.0.tar.gz(r-4.7-x86_64)bigIRT_0.2.0.tar.gz(r-4.6-arm64)bigIRT_0.2.0.tar.gz(r-4.6-x86_64)
bigIRT_0.2.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
bigIRT/json (API)

# Install 'bigIRT' in R:
install.packages('bigIRT', repos = c('https://cdriveraus.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/cdriveraus/bigirt/issues

Uses libs:
  • c++– GNU Standard C++ Library v3

On CRAN:

Conda:

cpp

5.54 score 6 stars 64 scripts 33 exports 7 dependencies

Last updated from:7eef27fe82. Checks:13 WARNING, 2 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64WARNING242
linux-devel-x86_64WARNING267
source / vignettesOK368
linux-release-arm64WARNING227
linux-release-x86_64WARNING267
macos-release-arm64WARNING226
macos-release-x86_64WARNING652
macos-oldrel-arm64WARNING251
macos-oldrel-x86_64WARNING389
windows-devel-arm64WARNING320
windows-devel-x86_64WARNING359
windows-release-arm64WARNING344
windows-release-x86_64WARNING256
windows-oldrel-x86_64WARNING287
wasm-releaseOK166

Exports:as.mirtaugmentIRTcheckConvergencecheckMirtBridgecompareIRTmodelsdropPerfectScoresempiricalICCextractMIRTparsfitIRTglanceIRTheldoutLogLikheldoutMetricsimproveModelIRTcurveIRTicitemFititemInformationlooIRTmodificationTestsnormaliseIRTnormaliseMIRTpersonCovarianceMatricespersonCovarianceMatrices_RplotLaplaceDiagnosticsreliabilityreportIRTrowLoadingsToSparsescoreContributionsscoreTestsimIRTtestInformationtidyIRTwleIRT

Dependencies:data.tablelatticeMatrixmizeRcppRcppEigenRcppParallel

Testing covariates after a fit: score-based DIF and ability screening
Data with impact and DIF | The covariate belongs in the ability model | DIF: one test per item | Purification | A covariate the fit does not have | Covariates of ability | Covariates that vary within person

Last update: 2026-10-09
Started: 2026-10-09

The Laplace objective and its gradient in bigIRT
Purpose | 4PL MIRT model | Observation model | $$\Pr(Y_{ij} = 1 \mid \theta_i, \psi_j) | $$\ell_{ij}(\theta_i,\psi_j) | Parameterization used in bigIRT | Latent distribution | Marginal likelihood target | Exact marginal likelihood | $$\log L(\psi) | Why Laplace | Per-person posterior approximation | $$f_i(\theta_i;\psi) | $$H_i(\psi) | Direct Laplace objective used in bigIRT | $$\tilde L(\psi) | Value versus gradient | Direct value | Approximate gradient | Item-side frozen-posterior gradient | Why this can be reasonable | Ability mean gradient | Ability correlation gradient | Why optimize in one direct stage? | Advantages | Disadvantages | Current algorithm in words | Identification | Why the approximation can still work well | 1. The value tracks the intended target | 2. The frozen-posterior gradient is locally sensible | 3. Warm starts help | 4. Large-data settings help the local Gaussian approximation | Important limitations | Approximate direct gradient | Sensitivity of $c$ and $d$ | Dependence on latent-distribution specification | Expensive evaluations | Alternative approaches | 1. Two-step Laplace EM | Pros | Cons | 2. Exact direct Laplace gradient via implicit differentiation | 3. Adaptive quadrature | 4. MHRM and related stochastic marginal methods | 5. Variational approximations | 6. JML / conditional optimization | When laplace_direct is attractive | When another method may be preferable | Summary | Measured behaviour of the frozen-posterior gradient | What the weight is actually worth | Why the near-correct weight loses, and what cannot fix it | It is not the quality of the Gaussian approximation | It is a bias-variance trade, concentrated where identification is weak | Scaling the log-determinant cannot substitute for it | What follows | Resolution: the gradient was right, the objective was incomplete | What this retracts

Last update: 2026-09-23
Started: 2026-08-27

Readme and manuals

Help Manual

Help pageTopics
Coerce a fit to a fixed-parameter mirt objectas.mirt
Per-response fitted values and residualsaugmentIRT
Convergence, resolved by parameter blockcheckConvergence
Verify the mirt coercion reproduces this fit's curvescheckMirtBridge
Compare IRT Model ParameterizationscompareIRTmodels
Drop subjects and items with all perfect scoresdropPerfectScores
Observed against model-implied response curvesempiricalICC
Score contributions as an estimating-function matrixestfun.bigIRT_scores
Extract Comparable MIRT ParametersextractMIRTpars
Fit a binary Item Response Theory (IRT) modelfitIRT
One-row model summaryglanceIRT
Held-out marginal log-likelihoodheldoutLogLik
Predictive performance on held-out responsesheldoutMetrics
Improve a model by score tests and held-out likelihoodimproveModel
Evaluate IRT Item Response CurvesIRTcurve
Information criteria for a marginal fitIRTic
Item fit by standardised residualsitemFit
Item information, standard errors and effective parametersitemInformation
Marginal log-likelihood of a fitlogLik.bigIRT_fit
Approximate leave-one-out cross-validationlooIRT
Score tests for modifying a fitted modelmodificationTests
normaliseIRTnormaliseIRT
Normalize Multidimensional IRT ParametersnormaliseMIRT
Compute person covariance matrices from row-level moderated IRT parameterspersonCovarianceMatrices
Compute person covariance matrices with a pure R reference implementationpersonCovarianceMatrices_R
Plot Laplace diagnosticsplotLaplaceDiagnostics
Reliability of the fitted abilitiesreliability
Render a model reportreportIRT
Convert row loadings to a sparse row representationrowLoadingsToSparse
Score contributions of a fitted modelscoreContributions
Score-based tests of covariate relations after a fitscoreTest
Simulate IRT datasimIRT
Item and test information across the ability rangetestInformation
Tidy the item parameterstidyIRT
Compute Weighted Likelihood Estimate (WLE) and Standard Error (SE)wleIRT