sample.v.mixmod: Internal function to sample parameter for truncated...

Description Usage Arguments Value

View source: R/mixmod_gibbs_functions.R

Description

This function samples the latent v parameter within the Gibbs sampler. Not for calling directly by users.

Usage

1
sample.v.mixmod(z, gamma1, nmaxclust)

Arguments

z

A vector of latent cluster estimates provided by sample.z.mixmod.

gamma1

numeric. Hyperparameter for the truncated stick-breaking prior.

nmaxclust

numeric. A single number indicating the maximum number of clusters to test.

Value

A list with estimates for v and theta for each of the possible states.


bayesmove documentation built on Oct. 22, 2021, 9:08 a.m.