stephens1997b_binomial_cc: Stephens (1997b) relabeling algorithm for Binomial 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 (1997b) for MCMC samples of a Binomial mixture distribution.

Usage

1
stephens1997b_binomial_cc(values, reps, comp_par, weight_par)

Arguments

values

A matrix of observations of dimension Nx1.

reps

A vector containing the repetitions.

comp_par

An array of component parameter samples from MCMC sampling. Dimension is MxK.

weight_par

An array of weight parameter samples from MCMC sampling. Dimension is MxK.

Value

An integer matrix of dimension MxK that holding the optimal labeling.

References

See Also


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