get.llk.mixmod: Internal function to calculate the log-likelihood for...

Description Usage Arguments Value

View source: R/mixmod_gibbs_functions.R

Description

Calculates the log-likelihood of the mixture model based on estimates for theta and phi.

Usage

1
get.llk.mixmod(phi, theta, ndata.types, dat, nobs, nmaxclust)

Arguments

phi

A list of proportion estimates that characterize distributions (bins) for each data stream and possible behavioral state.

theta

numeric. A vector of values that sum to one.

ndata.types

numeric. The number of data streams being analyzed.

dat

A data frame containing only columns of the discretized data streams for all observations.

nobs

numeric. The total number of rows in the dataset.

nmaxclust

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

Value

A numeric value of the log-likelihood based upon the current values for phi and theta.


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