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

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.