dina
R packageEstimate the Deterministic Input, Noisy And Gate (DINA) cognitive diagnostic model parameters using the Gibbs sampler described by Culpepper (2015) <doi: 10.3102/1076998615595403>.
You can install dina
from CRAN using:
install.packages("dina")
Or, you can be on the cutting-edge development version on GitHub using:
if(!requireNamespace("devtools")) install.packages("devtools")
::install_github("tmsalab/dina") devtools
To use the dina
package, load it into R
using:
library("dina")
From there, the DINA CDM can be estimated using:
= dina(<data>, <q>, chain_length = 10000) dina_model
To simulate item data under DINA, use:
# Set a seed for reproducibility
set.seed(888)
# Setup Parameters
= 15 # Number of Examinees / Subjects
N = 10 # Number of Items
J = 2 # Number of Skills / Attributes
K
# Assign slipping and guessing values for each item
= gs = rep(.2, J)
ss
# Simulate identifiable Q matrix
= sim_q_matrix(J, K)
Q
# Simulate subject attributes
= sim_subject_attributes(N, K)
subject_alphas
# Item data
= sim_dina_items(subject_alphas, Q, ss, gs) items_dina
Steven Andrew Culpepper and James Joseph Balamuta
dina
packageTo ensure future development of the package, please cite
dina
package if used during an analysis or simulations.
Citation information for the package may be acquired by using in
R:
citation("dina")
GPL (>= 2)