R/LDA_gibbs_functions.R
sample.phi.Rd
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)
z.agg | A list of latent cluster estimates provided by
|
---|---|
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
|
ndata.types | numeric. The number of data streams being analyzed. |
A matrix of proportion estimates that characterize distributions (bins) for each movement variable and possible behavioral state.