Simulate Ordinal Item Data from a Sparse Latent Class Model
sim_slcm(N, J, M, nClass, CLASS, Atable, BETA, KAPPA)
Number of Observations
Number of Items
Number of Item Categories (2, 3, ..., M)
Number of Latent Classes
A vector of \(N\) observations containing the class ID of the subject.
A matrix of dimensions \(M^K \times M^O\) containing the attribute classes in bijection-form. Note, \(O\) refers to the model's highest interaction order.
A matrix of dimensions \(J \times M^K\) containing the coefficients of the reparameterized \(\beta\) matrix.
A matrix of dimensions \(J \times M\) containing the category threshold parameters
An ordinal item matrix of dimensions \(N \times J\) with \(M\)response levels.