UpdateLambda {NestedCategBayesImpute} | R Documentation |
Update lambda.
Description
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.
Usage
UpdateLambda(HHdata_all, G_all, dHH, FF)
Arguments
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. |
Details
Function for obtaining a posterior sample of lambda when the weighting/capping option is not used.
Value
Updated (posterior) value for lambda based on the corresponding full conditional distribution.
Author(s)
Quanli Wang