Article view
mixR: An R package for Finite Mixture Modeling for Both Raw and Binned Data
By Youjiao Yu
Article information
- Publisher
- Free Journal Network
- Publication
- Published 13 January 2022
- Institutions at publication
- Baylor University
- Full text
- Read the article
Countries with citations
No data yet
Usage
Phase 3: not collected yet
Abstract
Statement of need R (R Core Team, 2020) provides a rich collection of packages for building and analyzing finite mixture models, which are widely used in unsupervised learning, such as model-based clustering and density estimation. For example, mclust (Scrucca et al., 2016) can be used to build Gaussian mixture models with different covariance structures, mixtools (Benaglia et al., 2010) implements parametric and non-parametric mixture models as well as mixtures of Gaussian regressions, flexmix (Leisch, 2004) provides a general framework for finite mixtures of regression models, mixdist (Macdonald et al., 2018) fits mixture models for grouped and conditional data (also called binned data). To our knowledge, almost all R packages for finite mixture models are designed to use raw data as the modeling input except mixdist. However, the popular model selection methods based on information criteria or bootstrapping likelihood ratio test (bLRT) (Feng & McCulloch, 1996;McLachlan, 1987;Yu & Harvill, 2019) are not implemented in mixdist. To bridge this gap and to unify the interface for finite mixture modeling for both raw and binned data, we implement mixR package that provides the following primary features.• mixfit() performs maximum likelihood estimation (MLE) for finite mixture models for Gaussian, Weibull, Gamma, and Log-normal distributions via EM algorithm (Dempster et al., 1977). The model fitting is accelerated via package Rcpp (Eddelbuettel et al., 2011).• select() selects the best model from a series of mixture models with a different number of mixture components by using Bayesian Information Criterion (BIC).• bs.test() performs bLRT for two mixture models from the same distribution family but with a different number of components.mixR also contains the following additional features.• Visualization of the fitted mixture models using ggplot2 (Wickham, 2011).• Functions to generate random data from mixture models.• Functions to convert parameters of Weibull and Gamma mixture models between shapescale representation used in probability density functions and mean-variance representation which is more intuitive for people to understand the distribution.
Citations per year
| Year | Citations |
|---|---|
| 2022 | 1 |
| 2023 | 10 |
| 2024 | 7 |
| 2025 | 11 |
| 2026 | 7 |
OpenAlex counts citations by year for the last ten years only, so the total and the list of citing works can include earlier ones.
Works citing this article
OpenAlex counts 36 citations, but the citing work are not listed here yet: citing works are collected from OpenAlex a few at a time, and it lists most, not all, of the citations it counts.
Where its authors are based
Countries of the institutions the article's authors were affiliated to when it was published.
- AUTHORS
- CITATIONS No data yet
- USAGE Phase 3
| Country | Authors |
|---|---|
| United States | 1 |