Update individual level latent class indexes.
sampleM(phi, data, omega, G, serial, Parallel)
Matrix of posterior samples for the individual-level probabilities for each individual-level variable by each pair of group-level and individual-level latent classes.
Input individual-level data.
Matrix of the probabilities for the individual-level latent classes by the group-level latent classes.
Household-level latent class indexes.
Vector containing the household index for each individual in the data.
Logical indicator for running the function in parallel mode.
A vector for the updated values of the individual-level latent class indexes for all individuals in the input data.
Function for obtaining a posterior sample of the individual-level latent class indexes for all individuals in the input data based on the corresponding full conditional distribution.