Learn R Programming

NestedCategBayesImpute (version 1.2.1)

UpdateOmega: Update omega and v.

Description

Update omega -- the matrix of the probabilities for the individual-level latent classes by the group-level latent classes -- and v -- the matrix of the beta-distributed variables in the stick breaking representation of the individual-level latent classes by the group-level latent classes -- when the weighting/capping option is not used.

Usage

UpdateOmega(beta, M_all, FF, SS)

Arguments

beta

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.

M_all

A vector of both the household-level and individual-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.

SS

Maximum number of individual-level latent classes allowed.

Value

A list containing the updated (posterior) values for omega and v based on the corresponding full conditional distributions.