stephens1997a_poisson_cc: Stephens (1997a) relabeling algorithm for Poisson mixtures

Description Usage Arguments Value References See Also

View source: R/RcppExports.R

Description

For internal usage only. This function runs the re-labeling algorithm from Stephens (1997a) for MCMC samples of a Poisson mixture distribution. For optimization a Nelder-Mead-Algorithm from the NLopt library is used. This is also the reason why the package depends on the nloptr package which provides a header file for direct access to the C routines.

Usage

1
stephens1997a_poisson_cc(values1, values2, pars, perm)

Arguments

values1

A matrix containing the sampled component parameters lambda.

values2

A matrix containing the sampled weights.

pars

A vector containing the parameters of the prior distributions of the component parameters and weights. More specifically, the parameters of the Dirichlet distribution for the weights and the shape and rate parameters for the Gamma distributions of the component parameters.

perm

A matrix with all possible permutations of the labels.

Value

A matrix of dimension MxK that holding the optimal labeling.

References

See Also


simonsays1980/finmix documentation built on Dec. 23, 2021, 2:25 a.m.