sample.phi: Internal function to sample bin estimates for each movement...

Description Usage Arguments Value

View source: R/LDA_gibbs_functions.R

Description

Estimates values of phi matrix for use in characterizing distributions of the movement variables. Not for calling directly by users.

Usage

1
sample.phi(z.agg, alpha, nmaxclust, nbins, ndata.types)

Arguments

z.agg

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

alpha

numeric. A hyperparameter for the Dirichlet distribution.

nmaxclust

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

nbins

numeric. A vector of the number of bins used to discretize each movement variable. These must be in the same order as the columns within y.

ndata.types

numeric. The number of data streams being analyzed.

Value

A matrix of proportion estimates that characterize distributions (bins) for each movement variable and possible behavioral state.


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