generate a \(I\) × \(K\) Q-matrix randomly, which consisted of one-attribute q-vectors
(50
This function ensures that the generated Q-matrix contains at least two identity matrices as a priority.
Therefore, this function must also satisfy the condition that the number of items (\(I\))
must be at least twice the number of attributes (\(K\)).
Usage
sim.Q(K, I, att.str = NULL)
Value
An object of class matrix.
Arguments
K
The number of attributes of the Q-matrix.
I
The number of items.
att.str
Specify attribute structures. NULL, by default, means there is no structure. Attribute structure
needs be specified as a list - which will be internally handled by att.structure function.
See examples. It can also be a matrix giving all permissible attribute profiles.
Author
Haijiang Qin <Haijiang133@outlook.com>
References
Najera, P., Sorrel, M. A., de la Torre, J., & Abad, F. J. (2021). Balancing fit and parsimony to improve Q-matrix validation. Br J Math Stat Psychol, 74 Suppl 1, 110-130. DOI: 10.1111/bmsp.12228.