Learn R Programming

GDINA Package for Cognitively Diagnostic Analyses

How to cite the package

Ma, W. & de la Torre, J. (2020). GDINA: An R Package for Cognitive Diagnosis Modeling. Journal of Statistical Software, 93(14), 1-26. https://doi.org/10.18637/jss.v093.i14

Visit the package website https://wenchao-ma.github.io/GDINA/ for examples, tutorials and more information.

Learning resources

Features of the package

  • Estimating G-DINA model and a variety of widely-used models subsumed by the G-DINA model, including the DINA model, DINO model, additive-CDM (A-CDM), linear logistic model (LLM), reduced reparametrized unified model (RRUM), multiple-strategy DINA model for dichotomous responses
  • Estimating models within the G-DINA model framework using user-specified design matrix and link functions
  • Estimating Bugs-DINA, DINO and G-DINA models for dichotomous responses
  • Estimating sequential G-DINA model for ordinal and nominal responses
  • Estimating the generalized multiple-strategy cognitive diagnosis models (experimental)
  • Estimating the diagnostic tree model (experimental)
  • Estimating multiple-choice models
  • Modelling independent, saturated, higher-order, loglinear smoothed, and structured joint attribute distribution
  • Accommodating multiple-group model analysis
  • Imposing monotonic constrained success probabilities
  • Accommodating binary and polytomous attributes
  • Validating Q-matrix under the general model framework
  • Evaluating absolute and relative item and model fit
  • Comparing models at the test and item levels
  • Detecting differential item functioning using Wald and likelihood ratio test
  • Simulating data based on all aforementioned CDMs
  • Providing graphical user interface for users less familiar with R

Installation

The stable version of GDINA should be installed from R CRAN at here

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("Wenchao-Ma/GDINA")

Copy Link

Version

Install

install.packages('GDINA')

Monthly Downloads

851

Version

2.9.4

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 1st, 2023

Functions in GDINA (2.9.4)

GMSCDM

Estimating multiple-strategy cognitive diagnosis models
GDINA-package

The Generalized DINA Model Framework
ILCA

Iterative latent-class analysis
LC2LG

Transformation between latent classes and latent groups
Qval

Q-matrix validation
DTM

Experimental function for diagnostic multiple-strategy CDMs
MCmodel

Multiple-choice models
GDINA

CDM calibration under the G-DINA model framework
ClassRate

Classification Rate Evaluation
CA

Calculate classification accuracy
bootSE

Calculating standard errors and variance-covariance matrix using bootstrap methods
ecpe

Examination for the Certificate of Proficiency in English (ECPE) data
autoGDINA

Q-matrix validation, model selection and calibration in one run
attributepattern

Generate all possible attribute patterns
designmatrix

Generate design matrix
att.structure

Generate hierarchical attribute structures
cjoint

Combine R Objects by Columns
extract

extract elements from objects of various classes
dif

Differential item functioning for cognitive diagnosis models
frac20

Tatsuoka's fraction subtraction data
bdiagMatrix

Create a block diagonal matrix
indlogPost

Extract log posterior for each individual
itemfit

Item fit statistics
monocheck

This function checks if monotonicity is violated
modelfit

Model fit statistics
npar

Calculate the number of parameters
personparm

calculate person (incidental) parameters
plot.Qval

Mesa plot for Q-matrix validation
plot.GDINA

Create plots for GDINA estimates
indlogLik

Extract log-likelihood for each individual
sim10MCDINA

Simulated data (10 items, MC-DINA model)
sim20seqGDINA

Simulated data (20 items, sequential G-DINA model)
sim10MCDINA2

Simulated data (10 items, MC-DINA model)
sim21seqDINA

Simulated data (21 items, sequential DINA model)
sim10GDINA

Simulated data (10 items, G-DINA model)
score

Score function
simDTM

Simulating data for diagnostic tree model
sim30pGDINA

Simulated data (30 items, polytomous G-DINA model)
sim30DINA

Simulated data (30 items, DINA model)
sim30GDINA

Simulated data (30 items, G-DINA model)
itemparm

extract item parameters (deprecated)
modelcomp

Item-level model comparison using Wald, LR or LM tests
rowMatch

Count the frequency of a row vector in a data frame
plot.itemfit

Item fit plots
simGDINA

Data simulation based on the G-DINA models
unique_only

Unique values in a vector
unrestrQ

Generate unrestricted Qc matrix from an restricted Qc matrix
startGDINA

Graphical user interface of the GDINA function