Linear Regressions with a Latent Outcome Variable
Overview
Fit latent variable linear models, estimating score distributions for groups of people, following Cohen and Jiang (1999) doi:10.2307/2669917. In this model, a latent distribution is conditional on students item response, item characteristics, and conditioning variables the user includes. This latent trait is then integrated out. This software is intended to fit the same models as the existing software 'AM' https://am.air.org/. As of version 2, also allows the user to draw plausible values.
Methods update
- Functions are a bit clearer about some errors when data sets do not agree. In particular, when a PSU/stratum variable is missing and
Taylorvariance is selected it gives a plain language error. - turning on
multiCorenow fits the latent regressions with multiple cores too. Previously it would only fit the covariance matrix with multiple cores. - added a nearly singular model check
- allow
stuDatto have students that are not on the item data without throwing an error. - optimization tries to avoid Newton's method by using the
lbfgspackage which allows for a condition on the gradient to be set. Newton's method can be very slow for large datasets. - when Newton's method is used, the output is more verbose.
- the C++ implementation of the Hessian has been sped up a bit.
From inst/NEWS.Rd in the release
Install
Health
NOTER code for possible problemsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64
Found calls to structure() using deprecated special names: Dire/tests/testthat/test-1-main.R (.Dim: 7, .Dimnames: 7, .Label: 1) Dire/tests/testthat/test-2-composite.R (.Label: 2) Dire/tests/testthat/test-3-gpcm.R (.Label: 6) Dire/tests/testthat/test-5-primerIntercept.R (.Label: 3) Dire/tests/testthat/test-6-primerReg.R (.Label: 3) '.Dim' should be changed to 'dim'. '.Dimnames' should be changed to 'dimnames'. '.Label' should be changed to 'levels'.
- NOTE8 OK, 5 NOTENow
- NOTE10 OK, 3 NOTE2026-07-16
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK14 OK2026-04-22
- ERROR13 OK, 1 ERROR2026-04-18
Show 1 earlier changeHide 1 earlier change
- OK14 OK2026-03-10
Documentation
- Help pages
- 2
- Examples that run
- 0%1 never run · 1 hold no code
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Stars over time
Issues over time
3 development-tooling and community-health practices detected across 1 family in the upstream repository
Checks run against github.com/american-institutes-for-research/dire on 2026-10-18.
Dependencies
Installing Dire adds 31 packages (17 with compiled code, 13 MB of source tarballs). Heaviest: lbfgs 2.1 MB, Rcpp 1.8 MB, RcppArmadillo 1.0 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 2.2.0Latest
- RR 4.3.0 released · 2023-04-21
- 2.1.12023-01-09 · diff ↗
- 2.1.02022-06-30 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.0.1
- RR 4.1.0 released · 2021-05-18
- 1.0.32021-04-03 · diff ↗
- 1.0.22021-03-22
- RR 4.0.0 released · 2020-04-24
Package metadata
- First published
- 2021-03-22
- Total releases
- 6 / 5 yrs
- License
- GPL-2 OSI
- Minimum R
- ≥ 4.0.0
- Download size
- 195 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("Dire")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-21, which the citation names so these numbers can be found later. More on citing and the projects behind them.