Learn R Programming

⚠️There's a newer version (2.9.12) of this package.Take me there.

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

Ma, W. & de la Torre, J. (2020). GDINA: The generalized DINA model framework. R package version 2.8.0. Retrived from https://CRAN.R-project.org/package=GDINA

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

1,129

Version

2.8.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Wenchao Ma

Last Published

May 24th, 2020

Functions in GDINA (2.8.0)

MCmodel

Multiple-choice models
GMSCDM

Estimating multiple-strategy cognitive diagnosis models
autoGDINA

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

Q-matrix validation
LC2LG

Transformation between latent classes and latent groups
cjoint

Combine R Objects by Columns
indlogPost

Extract log posterior for each individual
extract

extract elements from objects of various classes
dif

Differential item functioning for cognitive diagnosis models
itemfit

Item fit statistics
sim30GDINA

Simulated data (30 items, G-DINA model)
att.structure

Generate hierarchical attribute structures
itemparm

extract item parameters (deprecated)
ecpe

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

Calculate classification accuracy
sim30DINA

Simulated data (30 items, DINA model)
GDINA-package

The Generalized DINA Model Framework
bootSE

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

Generate all possible attribute patterns
modelcomp

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

Generate design matrix
simGDINA

Data simulation based on the G-DINA models
npar

Calculate the number of parameters
plot.itemfit

Item fit plots
sim21seqDINA

Simulated data (21 items, sequential DINA model)
frac20

Tatsuoka's fraction subtraction data
score

Score function
simDTM

Simulating data for diagnostic tree model
bdiagMatrix

Create a block diagonal matrix
plot.Qval

Mesa plot for Q-matrix validation
sim20seqGDINA

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

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

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

calculate person (incidental) parameters
modelfit

Model fit statistics
indlogLik

Extract log-likelihood for each individual
monocheck

This function checks if monotonicity is violated
rowMatch

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

Create plots for GDINA estimates
unrestrQ

Generate unrestricted Qc matrix from an restricted Qc matrix
startGDINA

Graphical user interface of the GDINA function
unique_only

Unique values in a vector
sim30pGDINA

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

Experimental function for diagnostic multiple-strategy CDMs
ClassRate

Classification Rate Evaluation
ILCA

Iterative latent-class analysis
GDINA

CDM calibration under the G-DINA model framework