get.Rmatrix | R Documentation |
This function returns the restriction matrix (de la Torre, 2011; Ma & de la Torre, 2020) based on two q-vectors, where the two q-vectors can only differ by one attribute.
get.Rmatrix(q1, q2)
q1 |
A q-vector |
q2 |
Another q-vector |
A restriction matrix
de la Torre, J. (2011). The Generalized DINA Model Framework. Psychometrika, 76(2), 179-199. DOI: 10.1007/s11336-011-9207-7.
Ma, W., & de la Torre, J. (2020). An empirical Q-matrix validation method for the sequential generalized DINA model. British Journal of Mathematical and Statistical Psychology, 73(1), 142-163. DOI: 10.1111/bmsp.12156.
q1 <- c(1, 1, 0)
q2 <- c(1, 1, 1)
Rmatrix <- get.Rmatrix(q1, q2)
print(Rmatrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.