Description Usage Arguments Details Value Author(s)
Update lambda – the list of matrices of the group-level probabilities for each group-level variable by the group-level latent classes when the weighting/capping option is not used. Each matrix in the list is for each group-level variable.
1 | UpdateLambda(HHdata_all, G_all, dHH, FF)
|
HHdata_all |
Data matrix for the household-level data from both the original data and the sampled impossible households. |
G_all |
A vector of the household-level latent class indexes for all households both in the original data and the sampled impossible households. |
dHH |
A vector containing the number of levels for each household-level variable. |
FF |
Maximum number of household-level latent classes allowed. |
Function for obtaining a posterior sample of lambda when the weighting/capping option is not used.
Updated (posterior) value for lambda based on the corresponding full conditional distribution.
Quanli Wang
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.