dina_data_gen {variationalDCM} | R Documentation |
Artificial data generating function for the DINA model based on the given Q-matrix
Description
dina_data_gen()
returns the artificially generated item response data for the DINA model
Usage
dina_data_gen(Q, I, attr_cor = 0.1, s = 0.2, g = 0.2, seed = 17)
Arguments
Q |
the |
I |
the number of assumed respondents |
attr_cor |
the true value of the correlation among attributes (default: 0.1) |
s |
the true value of the slip parameter (default: 0.2) |
g |
the true value of the guessing parameter (default: 0.2) |
seed |
the seed value used for random number generation (default: 17) |
Value
A list including:
- X
the generated artificial item response data
- att_pat
the generated true vale of the attribute mastery pattern
References
Oka, M., & Okada, K. (2023). Scalable Bayesian Approach for the Dina Q-Matrix Estimation Combining Stochastic Optimization and Variational Inference. Psychometrika, 88, 302–331. doi:10.1007/s11336-022-09884-4
Examples
# load Q-matrix
Q = sim_Q_J80K5
sim_data = dina_data_gen(Q=Q,I=200)
[Package variationalDCM version 2.0.1 Index]