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

Description Usage Arguments Value

View source: R/LDA_gibbs_functions.R

Description

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.

Usage

1
sample.v(z.agg, gamma1, ntsegm, ndata.types, nmaxclust)

Arguments

z.agg

A list of latent cluster estimates provided by sample.z.

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.

Value

A matrix with estimates for v for each of the number of time segments and possible states.


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