sample.v {bayesmove}R Documentation

Internal function to sample parameter for truncated stick-breaking prior

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

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.


[Package bayesmove version 0.2.1 Index]