Learn R Programming

NestedCategBayesImpute (version 1.2.1)

UpdateAlpha: Update alpha.

Description

Update alpha -- the concentration parameter in the Dirichlet process for the group-level latent classes.

Usage

UpdateAlpha(aa, ab, u)

Arguments

aa

Hyper-parameter a for alpha.

ab

Hyper-parameter b for alpha.

u

Vector of the beta-distributed variables in the stick breaking representation of the group-level latent classes.

Value

Updated (posterior) value for alpha based on the corresponding full conditional distribution.