sim_slcm function

Simulate Ordinal Item Data from a Sparse Latent Class Model

Simulate Ordinal Item Data from a Sparse Latent Class Model

sim_slcm(N, J, M, nClass, CLASS, Atable, BETA, KAPPA)

Arguments

  • N: Number of Observations
  • J: Number of Items
  • M: Number of Item Categories (2, 3, ..., M)
  • nClass: Number of Latent Classes
  • CLASS: A vector of NN observations containing the class ID of the subject.
  • Atable: A matrix of dimensions MK×MOM^K \times M^O containing the attribute classes in bijection-form. Note, OO refers to the model's highest interaction order.
  • BETA: A matrix of dimensions J×MKJ \times M^K containing the coefficients of the reparameterized β\beta matrix.
  • KAPPA: A matrix of dimensions J×MJ \times M containing the category threshold parameters

Returns

An ordinal item matrix of dimensions NxJN x J with MM

response levels.

See Also

ohoegdm