Description Usage Arguments Details Value Author(s)
Update household (group) level latent class indexes.
1 |
phi |
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. |
data |
Individual level data. |
omega |
Matrix of the probabilities for the individual-level latent classes by the group-level latent classes. |
pi |
Vector of the probabilities for the group-level latent classes. |
ni |
Vector containing the number of individuals in each household in the data.. |
HHdata |
Household level data. |
lambda |
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. |
Parallel |
Logical indicator for running the function in parallel mode. |
Function for obtaining a posterior sample of the household-level latent class indexes for all households in the input data based on the corresponding full conditional distribution.
A list with two variables.
G |
A vector for the updated values of the household-level latent class indexes for all households in the input data. |
G_Individuals |
The vector |
Quanli Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.