Learn R Programming

variationalDCM (version 2.0.1)

mc_dina_data_gen: 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)

Value

A list including:

X

the generated artificial item response data

att_pat

the generated true vale of the attribute mastery pattern

Arguments

I

the number of assumed respondents

Q

the \(J \times K\) binary matrix

att_cor

the true value of the correlation among attributes (default: 0.1)

seed

the seed value used for random number generation (default: 17)

References

Yamaguchi, K. (2020). Variational Bayesian inference for the multiple-choice DINA model. Behaviormetrika, 47(1), 159-187. tools:::Rd_expr_doi("10.1007/s41237-020-00104-w")

Examples

Run this code
# load a simulated Q-matrix
mc_Q = mc_sim_Q
mc_sim_data = mc_dina_data_gen(Q=mc_Q,I=200)

Run the code above in your browser using DataLab