There are two ways to estimate the log likelihood from the model. If method = 1
,
then log likelihood is estimated by applying fn
(defaults to max, if method = 1)
direclty on the log likelihood values from observed during the MCMC run.
On the other hand, if method == 2
, then parameter estimates
are first computed using pointest
with fn
(defaults to "MODE", if method == 2
) applied on the MCMC samples,
and then then log likelihood is evaluated at the parameter estimates.
The degrees of the likelihood function is the total number of free parameters estimated in the mixture models,
which is equal to \(6K - 1\) for bivariate models (vmsin, vmcos and wnorm2), or \(3K - 1\) for univariate
models (vm and wnorm), where \(K\) denotes the number of components in the mixture model.