Description Usage Arguments Details Value Author(s)
Update pi – the vector of the probabilities for the group-level latent classes – and u – the vector of the beta-distributed variables in the stick breaking representation of the group-level latent classes – when the weighting/capping option is not used.
1 | UpdatePi(alpha, G_all, FF)
|
alpha |
Concentration parameter in the Dirichlet process for the group-level latent classes |
G_all |
A vector of the household-level latent class indexes for all households both in the original data and the sampled impossible households. |
FF |
Maximum number of household-level latent classes allowed. |
Function for obtaining a posterior sample of pi when the weighting/capping option is not used.
A list containing the updated (posterior) values for pi and u based on the corresponding full conditional distributions.
Quanli wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.