Initialize the model parameters for the MCMC.
initParameters(data, hyper, HHhead_at_group_level)
A list object including all the necessary data variables needed by the sampler; output of the initData
function.
Hyper parameters for the prior distributions.
Logical indicator for data structure with respect to the household head. Set to TRUE if the household head has been moved to the household level and FALSE otherwise.
A list of the initial values of the parameters.
Concentration parameter in the Dirichlet process for the group-level latent classes.
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.
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.
The transposed household level data -- each column represents each household.
A list of matrices of the group-level probabilities for each group-level variable by the group-level latent classes. Each matrix in the list is for each group-level variable.
Vector of the beta-distributed variables in the stick breaking representation of the group-level latent classes.
Vector of the probabilities for the group-level latent classes.
Matrix of the beta-distributed variables in the stick breaking representation of the individual-level latent classes by the group-level latent classes.
Matrix of the probabilities for the individual-level latent classes by the group-level latent classes.