multinomialOrder: Estimate the Number of Components in a Multinomial Mixture...

Description Usage Arguments Details Value References Examples

View source: R/gsf.R

Description

Estimate the order of a finite mixture of multinomial models with fixed and known number of trials.

Usage

1
multinomialOrder(y, lambdas, K = NULL, ...)

Arguments

y

n by D matrix consisting of the data, where n is the sample size and D is the number of categories. The rows of y must sum to a constant value, taken to be the number of trials.

lambdas

Vector of tuning parameter values.

K

Upper bound on the true number of components. If K is NULL, at least one of the control parameters theta and pii must be non-NULL, and K is inferred from their number of columns.

...

Additional control parameters. See the Details section.

Details

The following is a list of additional control parameters.

Value

An object with S3 classes gsf and multinomialGsf, consisting of a list with the estimates produced for every tuning parameter in lambdas.

References

Manole, T., Khalili, A. 2019. "Estimating the Number of Components in Finite Mixture Models via the Group-Sort-Fuse Procedure".

Grenier, I. (2016) Bayesian Model Selection for Deep Exponential Families. M.Sc. dissertation, McGill University Libraries.

Examples

1
2
3
4
5
6
 require(MM)
 data(pollen)
 set.seed(1)
 out <- multinomialOrder(pollen, K=12, lambdas=seq(0.1, 1.6, 0.2))
 tuning <- bicTuning(pollen, out)
 plot(out, eta=TRUE, gg=FALSE, opt=tuning$result$lambda)

tmanole/GroupSortFuse documentation built on Jan. 12, 2022, 10:37 p.m.