Simulate Ordinal Item Data from a Sparse Latent Class Model
sim_slcm(N, J, M, nClass, CLASS, Atable, BETA, KAPPA)
N
: Number of ObservationsJ
: Number of ItemsM
: Number of Item Categories (2, 3, ..., M)nClass
: Number of Latent ClassesCLASS
: A vector of observations containing the class ID of the subject.Atable
: A matrix of dimensions containing the attribute classes in bijection-form. Note, refers to the model's highest interaction order.BETA
: A matrix of dimensions containing the coefficients of the reparameterized matrix.KAPPA
: A matrix of dimensions containing the category threshold parametersAn ordinal item matrix of dimensions with
response levels.
ohoegdm
Useful links