Update omega -- the matrix of the probabilities for the individual-level latent classes by the group-level latent classes -- and v -- the matrix of the beta-distributed variables in the stick breaking representation of the individual-level latent classes by the group-level latent classes -- when the weighting/capping option is used. The weighting options allows capping the number of impossible households to sample and re-weight the multinomial counts within each latent class back to the expected truth.
UpdateOmegaWeighted(beta, M_all, FF, SS, struc_weight)
Concentration parameter in the Dirichlet process for the individual-level latent classes. Currently, this is assumed to be the same within all group-level classes.
A vector of both the household-level and individual-level latent class indexes for all households both in the original data and the sampled impossible households.
Maximum number of household-level latent classes allowed.
Maximum number of individual-level latent classes allowed.
A vector of weights by household sizes used in capping the number of sampled impossible households.
A list containing the updated (posterior) values for omega and v based on the corresponding full conditional distributions.