Update phi -- the 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 -- 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.
UpdatePhiWeighted(data, M_all, FF, SS, d, maxd, struc_weight)
Data matrix for the individual-level data from both the original data and the sampled impossible households.
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 for the number of levels of each individual-level variable.
Maximum value in d
.
A vector of weights by household sizes used in capping the number of sampled impossible households.
Updated (posterior) value for phi based on the corresponding full conditional distribution.
Function for obtaining a posterior sample of phi when the weighting/capping option is used.