This function gives the equivalent latent classes which have the same category success probabilities for each category or item.
LC2LG(Q, sequential = FALSE, att.str = NULL)
An item or category by latent class matrix. In the G-DINA model,
if item j measures
A required
logical; whether the Q-matrix is a Qc-matrix for sequential models?
attribute structure. See GDINA
for details.
Wenchao Ma, The University of Alabama, wenchao.ma@ua.edu
Jimmy de la Torre, The University of Hong Kong
attributepattern(3)
q <- matrix(scan(text = "0 1 0 1 0 1 1 1 0"),ncol = 3)
q
LC2LG(Q = q)
Run the code above in your browser using DataLab