mc_dina_data_gen {variationalDCM} | R Documentation |
Artificial data generating function for the multiple-choice DINA model based on the given Q-matrix
Description
mc_dina_data_gen()
returns the artificially generated item response data for the MC-DINA model
Usage
mc_dina_data_gen(I, Q, att_cor = 0.1, seed = 17)
Arguments
I |
the number of assumed respondents |
Q |
the |
att_cor |
the true value of the correlation among attributes (default: 0.1) |
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
Yamaguchi, K. (2020). Variational Bayesian inference for the multiple-choice DINA model. Behaviormetrika, 47(1), 159-187. doi:10.1007/s41237-020-00104-w
Examples
# load a simulated Q-matrix
mc_Q = mc_sim_Q
mc_sim_data = mc_dina_data_gen(Q=mc_Q,I=200)
[Package variationalDCM version 2.0.1 Index]