5.2 Likelihood of an individual response vector
Let us assume we have items in a test measuring attributes and the Q-matrix is given below:
Code
Q <- matrix(c(1, 0, 1, 0, 0, 1, 0, 1, 1, 1), ncol = 2, byrow = TRUE)Also assume that we have item responses from students:
Code
y <- matrix(c(1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1,
0, 1, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1,
0, 1, 0, 1, 0, 1, 0, 1), ncol = 5, byrow = TRUE)