View source: R/mixmod_gibbs_functions.R
sample.v.mixmod | R Documentation |
This function samples the latent v parameter within the Gibbs sampler. Not for calling directly by users.
sample.v.mixmod(z, gamma1, nmaxclust)
z |
A vector of latent cluster estimates provided by
|
gamma1 |
numeric. Hyperparameter for the truncated stick-breaking prior. |
nmaxclust |
numeric. A single number indicating the maximum number of clusters to test. |
A list with estimates for v and theta for each of the possible states.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.