Useful Tools for Cognitive Diagnosis Modeling

Provides useful tools for cognitive diagnosis modeling (CDM). The package includes functions for empirical Q-matrix estimation and validation, such as the Hull method (Nájera, Sorrel, de la Torre, & Abad, 2021, ) and the discrete factor loading method (Wang, Song, & Ding, 2018, ). It also contains dimensionality assessment procedures for CDM, including parallel analysis and automated fit comparison as explored in Nájera, Abad, and Sorrel (2021, ). Other relevant methods and features for CDM applications, such as the restricted DINA model (Nájera et al., 2023; ), the general nonparametric classification method (Chiu et al., 2018; ), and corrected estimation of the classification accuracy via multiple imputation (Kreitchmann et al., 2022; ) are also available. Lastly, the package provides some useful functions for CDM simulation studies, such as random Q-matrix generation and detection of complete/identified Q-matrices.


cdmTools: Useful Tools for Cognitive Diagnosis Modeling

Project Status: Active – The project has reached a stable, usable state and is being actively developed. CRAN_Status_Badge

How to cite this package

Nájera, P., Sorrel, M. A., & Abad, F. J. (2025). cdmTools: Useful Tools for Cognitive Diagnosis Modeling. R package version 1.0.6. https://cran.r-project.org/web/packages/cdmTools/.

Features of the package

  • Empirical Q-matrix estimation and validation
  • Empirical dimensionality assessment of CDM data
  • G-DINA model estimation for forced-choice items
  • Attribute profile classification via the general nonparametric classification method (GNPC)
  • R-DINA and R-DINO model estimation
  • Corrected classification accuracy estimation via multiple imputation
  • Person fit evaluation
  • Model identifiability check
  • Useful functions for simulation studies involving CDM

Installation

To install this package from source:

  1. Windows users may need to install the Rtools and include the checkbox option of installing Rtools to their path for easier command line usage. Mac users will have to download the necessary tools from the Xcode and its related command line tools (found within Xcode's Preference Pane under Downloads/Components); most Linux distributions should already have up to date compilers (or if not they can be updated easily).
  2. Install the devtools package (if necessary), and install the package from the Github source code.
#install.packages("devtools")
devtools::install_github("Pablo-Najera/cdmTools")

Bug reports

Please report any bugs at https://github.com/Pablo-Najera/cdmTools/issues.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("cdmTools")

1.0.6 by Pablo Nájera, a year ago


https://github.com/pablo-najera/cdmTools


Report a bug at https://github.com/pablo-najera/cdmTools/issues


Browse source code at https://github.com/cran/cdmTools


Authors: Pablo Nájera [aut, cre, cph] , Miguel A. Sorrel [aut, cph] , Francisco J. Abad [aut, cph] , Rodrigo S. Kreitchmann [ctb] , Kevin Santos [ctb]


Documentation:   PDF Manual  


GPL-3 license


Imports GDINA, ggplot2, psych, sirt, parallel, stats, GPArotation, combinat, fungible, foreach, doSNOW, plyr


Imported by cdcatR.

Suggested by GDINA.


See at CRAN