Description Usage Arguments Value
View source: R/LDA_gibbs_functions.R
This function samples the latent v parameter within the Gibbs sampler.
Calls on the CumSumInv
function written in C++. Not for calling
directly by users.
1 | sample.v(z.agg, gamma1, ntsegm, ndata.types, nmaxclust)
|
z.agg |
A list of latent cluster estimates provided by
|
gamma1 |
numeric. Hyperparameter for the truncated stick-breaking prior. |
ntsegm |
numeric. The total number of time segments from all animal IDs. |
ndata.types |
numeric. The number of data streams being analyzed. |
nmaxclust |
numeric. A single number indicating the maximum number of clusters to test. |
A matrix with estimates for v for each of the number of time segments and possible states.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.