Flexible Mixture Modeling
Overview
A general framework for finite mixtures of regression models using the EM algorithm is implemented. The E-step and all data handling are provided, while the M-step can be supplied by the user to easily define new models. Existing drivers implement mixtures of standard linear models, generalized linear models and model-based clustering.
- Example code of
ExLinearchanged to avoid warning. - Example code of
bootandFLXMRglmfixchanged to use donttest instead of dontrun. - Ensure that
FLXMRmgcvgets the family function from packagestats. Thanks to Jürgen Claesen for pointing the issue out. - Package
latticeis not depended on, but only imported. - Modified examples and vignettes to run through smoothly even if checked with _R_CHECK_DEPENDS_ONLY_=true.
- Changed URLs to use
httpsinstead ofhttp. - Changed documentation to avoid having exported functions without usage information.
- A superfluous but incorrect argument specification for xlev in the internal function modelMatrix() dropped. Thanks to Maximilian Scholz for pointing the issue out.
From inst/NEWS.Rd in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-27
- WARNING12 OK, 1 WARNING2026-06-14
- OK14 OK2026-03-10
Documentation
- Help pages
- 64 (2 internal)
- Examples that run
- 100%38 run in a plain check (4 of them under a condition)
- Exported functions with examples
- 61%
- Documented parameters
- 97%
- Return-value docs
- 74%
- Help pages citing references
- 41%
- Applications of finite mixtures of regression models PDF
- Finite Mixture Model Diagnostics Using Resampling Methods PDF
- FlexMix Version 2: Finite Mixtures with Concomitant Variables and Varying and Constant Parameters PDF
- FlexMix: A General Framework for Finite Mixture Models and Latent Class Regression in R PDF
Downloads
Dependencies
Installing flexmix adds 1 package (0 with compiled code, 15 KB of source tarballs). Heaviest: modeltools 15 KB.
Code & Tests
Datasets
People & History
Previously maintained by Friedrich Leisch (0.7-0 to 2.0-1).
Pick two releases to compare their code metrics.
- 2.3-21Latest
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 2.3-20
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 2.3-192023-03-16 · diff ↗
- 2.3-182022-06-07 · diff ↗
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 2.3-172020-10-12 · diff ↗
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- 2.3-152019-02-18 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 2.3-14
Show 59 earlier eventsHide 59 earlier events
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 2.3-13
- 2.3-122014-09-24 · diff ↗
- RR 3.1.0 released · 2014-04-10
- 2.3-112013-09-27 · diff ↗
- RR 3.0.0 released · 2013-04-03
- 2.3-102013-02-13 · diff ↗
- 2.3-9
- 2.3-8
- RR 2.15.0 released · 2012-03-30
- 2.3-7
- 2.3-62012-01-12 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 2.3-52011-04-24 · diff ↗
- RR 2.13.0 released · 2011-04-13
- 2.3-42011-02-28 · diff ↗
- 2.3-32011-01-24 · diff ↗
- 2.3-22011-01-08 · diff ↗
- 2.3-1
- 2.2-11
- 2.2-102010-11-03 · diff ↗
- RR 2.12.0 released · 2010-10-15
- 2.2-92010-10-11 · diff ↗ ·
added 5 exports
existGradient, FLXgradlogLikfun, FLXMRmgcv, FLXreplaceParameters, refit_optim - 2.2-8
- 2.2-7
- 2.2-6
- RR 2.11.0 released · 2010-04-22
- 2.2-5
- 2.2-4
- RR 2.10.0 released · 2009-10-26
- 2.2-3
- RR 2.9.0 released · 2009-04-17
- RR 2.8.0 released · 2008-10-20
- 2.2-0
- 2.1-02008-05-09 · diff ↗
- RR 2.7.0 released · 2008-04-22
- 2.0-22008-03-26 · diff ↗
- RR 2.6.0 released · 2007-10-03
- 2.0-12007-09-11 · diff ↗
- 2.0-02007-05-03 · diff ↗ ·
removed 2 exports
KLdiv, refitadded 11 exports
FLXMCmvbinary, FLXMCmvnorm, FLXMCmvpois, FLXPmultinom, FLXPconstant, FLXMRglm, FLXMRglmfix, FLXMRziglm, FLXglmFix, FLXconstant, FLXmultinom - RR 2.5.0 released · 2007-04-24
- RR 2.4.0 released · 2006-10-03
- 1.1-2
- RR 2.3.0 released · 2006-04-24
- 1.1-1
- RR 2.2.0 released · 2005-10-06
- RR 2.1.0 released · 2005-04-18
- 1.1-02005-01-03 · diff ↗ ·
added 9 exports
ExNPreg, ExNclus, FLXglm, FLXmclust, KLdiv, flexmix, plotEll, refit, stepFlexmix - 1.0-02004-10-19 · diff ↗
- RR 2.0.0 released · 2004-10-04
- 0.9-22004-10-01 · diff ↗
- 0.9-02004-04-19 · diff ↗
- RR 1.9.0 released · 2004-04-12
- RR 1.8.0 released · 2003-10-08
- 0.7-12003-09-03 · diff ↗
- 0.7-02003-07-09
- RR 1.7.0 released · 2003-04-16
Package metadata
- First published
- 2003-07-09
- Total releases
- 42 / 23 yrs
- License
- GPL (>= 2) OSI
- Minimum R
- ≥ 2.15.0
- Bundled data
- 40 KB / 16 files
- Download size
- 1.1 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("flexmix")The package provides a citation file that builds its entry when R runs it. Run citation() to see it.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.