dina_data_gen: Artificial data generating function for the DINA model based...

View source: R/dina.R

dina_data_genR 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 J \times K binary matrix

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. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1007/s11336-022-09884-4")}

Examples

# load Q-matrix
Q = sim_Q_J80K5
sim_data = dina_data_gen(Q=Q,I=200)

variationalDCM documentation built on May 29, 2024, 6:45 a.m.