powered by
The function generates a complete Q-matrix based on a pre-specified probability of getting a one.
Q.generate(K, J, p, single.att = TRUE)
The function returns a complete dichotomous Q-matrix
The number of attributes
The number of items
The probability of getting a one in the Q-matrix
Whether all the single attribute patterns are included. If T, the completeness of the Q-matrix is guaranteed.
T
q = Q.generate(3,20,0.5,single.att = TRUE) q1 = Q.generate(5,30,0.6,single.att = FALSE)
Run the code above in your browser using DataLab