Package: flexmix 2.3-19

Bettina Gruen

flexmix: Flexible Mixture Modeling

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.

Authors:Bettina Gruen [aut, cre], Friedrich Leisch [aut], Deepayan Sarkar [ctb], Frederic Mortier [ctb], Nicolas Picard [ctb]

flexmix_2.3-19.tar.gz
flexmix_2.3-19.tar.gz(r-4.5-noble)flexmix_2.3-19.tar.gz(r-4.4-noble)
flexmix_2.3-19.tgz(r-4.4-emscripten)flexmix_2.3-19.tgz(r-4.3-emscripten)
flexmix.pdf |flexmix.html
flexmix/json (API)
NEWS

# Install 'flexmix' in R:
install.packages('flexmix', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Datasets:
  • BregFix - Artificial Example for Binomial Regression
  • Mehta - Mehta Trial
  • NPreg - Artificial Example for Normal, Poisson and Binomial Regression
  • Nclus - Artificial Example with 4 Gaussians
  • NregFix - Artificial Example for Normal Regression
  • betablocker - Clinical Trial of Beta-Blockers
  • bioChemists - Articles by Graduate Students in Biochemistry Ph.D. Programs
  • candy - Candy Packs Purchased
  • dmft - Dental Data
  • fabricfault - Fabric Faults
  • patent - Patents and R&D Spending
  • salmonellaTA98 - Salmonella Reverse Mutagenicity Assay
  • seizure - Epileptic Seizure Data
  • tribolium - Tribolium Beetles
  • trypanosome - Trypanosome
  • whiskey - Survey Data on Brands of Scotch whiskey Consumed
  • whiskey_brands - Survey Data on Brands of Scotch whiskey Consumed

This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.

74 exports 5 stars 6.93 score 3 dependencies 109 dependents 32 mentions 586 scripts 19.9k downloads

Last updated 2 years agofrom:79b16f19b9. Checks:OK: 2. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 12 2024
R-4.5-linuxOKSep 12 2024

Exports:bootclusterscoerceEICexistGradientExLinearExNclusExNPregfittedflexmixFLXbclustFLXcheckComponentFLXconstantFLXdeterminePostunscaledFLXdistFLXfitFLXgetDesignFLXgetKFLXgetModelmatrixFLXgetObsFLXgetParametersFLXglmFLXglmFixFLXgradlogLikfunFLXlogLikfunFLXMCdist1FLXMCfactanalFLXmclustFLXMCmvbinaryFLXMCmvcombiFLXMCmvnormFLXMCmvpoisFLXMCnorm1FLXMRcondlogitFLXMRglmFLXMRglmfixFLXMRglmnetFLXMRlmerFLXMRlmmFLXMRlmmcFLXMRmgcvFLXMRmultinomFLXMRrobglmFLXMRziglmFLXmstepFLXmultinomFLXPconstantFLXPmultinomFLXremoveComponentFLXreplaceParametersgetModelgroupICLinitFlexmixinitializeKLdivLapplylogLikLR_testparametersplotplotEllposteriorpredictpriorrefitrefit_optimrelabelrflexmixrFLXMshowstepFlexmixsummaryunique

Dependencies:latticemodeltoolsnnet

Applications of finite mixtures of regression models

Rendered fromregression-examples.Rnwusingutils::Sweaveon Sep 12 2024.

Last update: 2020-10-12
Started: 2012-01-10

Finite Mixture Model Diagnostics Using Resampling Methods

Rendered frombootstrapping.Rnwusingutils::Sweaveon Sep 12 2024.

Last update: 2020-10-12
Started: 2012-01-10

FlexMix Version 2: Finite Mixtures with Concomitant Variables and Varying and Constant Parameters

Rendered frommixture-regressions.Rnwusingutils::Sweaveon Sep 12 2024.

Last update: 2020-10-12
Started: 2012-01-10

FlexMix: A General Framework for Finite Mixture Models and Latent Class Regression in R

Rendered fromflexmix-intro.Rnwusingutils::Sweaveon Sep 12 2024.

Last update: 2020-10-12
Started: 2012-01-10

Readme and manuals

Help Manual

Help pageTopics
Methods for Function AICAIC,flexmix-method AIC,stepFlexmix-method
Clinical Trial of Beta-Blockersbetablocker
Methods for Function BICBIC,flexmix-method BIC,stepFlexmix-method
Articles by Graduate Students in Biochemistry Ph.D. ProgramsbioChemists
Bootstrap a flexmix Objectboot boot,flexmix-method clusters,FLXboot,listOrdata.frame-method FLXboot-class LR_test LR_test,flexmix-method parameters,FLXboot-method plot,FLXboot,missing-method posterior,FLXboot,listOrdata.frame-method predict,FLXboot-method show,FLXboot-method
Artificial Example for Binomial RegressionBregFix
Candy Packs Purchasedcandy
Dental Datadmft
Entropic Measure Information CriterionEIC EIC,flexmix-method EIC,stepFlexmix-method
Artificial Data from a Generalized Linear Regression MixtureExLinear
Artificial Example with 4 GaussiansExNclus Nclus
Artificial Example for Normal, Poisson and Binomial RegressionExNPreg NPreg
Fabric Faultsfabricfault
Extract Model Fitted Valuesfitted,flexmix-method fitted,FLXM-method fitted,FLXR-method fitted,FLXRMRglm-method
Flexible Mixture Modelingflexmix flexmix,formula,ANY,ANY,ANY,FLXM-method flexmix,formula,ANY,ANY,ANY,list-method flexmix,formula,ANY,ANY,ANY,missing-method prior,flexmix-method show,flexmix-method show,summary.flexmix-method summary,flexmix-method
Class "flexmix"flexmix-class
Class "FLXcomponent"FLXcomponent-class show,FLXcomponent-method
Class "FLXcontrol"coerce,list,FLXcontrol-method coerce,NULL,FLXcontrol-method FLXcontrol-class
Finite Mixtures of DistributionsFLXdist show,FLXdist-method simulate,FLXdist-method
Class "FLXdist"FLXdist-class parameters,FLXdist-method predict,FLXdist-method predict,FLXM-method predict,FLXMRglm-method predict,FLXMRmgcv-method prior prior,FLXdist-method
Fitter Function for FlexMix ModelsFLXfit FLXfit,list-method
Class "FLXM"FLXM-class FLXMC-class FLXMCsparse-class FLXMR-class show,FLXM-method
FlexMix Clustering of Univariate DistributionsFLXMCdist1
Driver for Mixtures of Factor AnalyzersFLXMCfactanal rFLXM,FLXMCfactanal,FLXcomponent-method
FlexMix Binary Clustering DriverFLXbclust FLXMCmvbinary
FlexMix Binary and Gaussian Clustering DriverFLXMCmvcombi
FlexMix Clustering Demo DriverFLXmclust FLXMCmvnorm FLXMCnorm1
FlexMix Poisson Clustering DriverFLXMCmvpois
FlexMix Interface to Conditional Logit ModelsFLXMRcondlogit
FlexMix Interface to Generalized Linear ModelsFLXglm FLXMRglm
FlexMix Interface to GLMs with Fixed CoefficientsFLXglmFix FLXMRglmfix
FlexMix Interface for Adaptive Lasso / Elastic Net with GLMsFLXMRglmnet FLXMRglmnet-class
FlexMix Interface to Linear Mixed ModelsFLXdeterminePostunscaled,FLXMRlmer-method FLXdeterminePostunscaled,FLXMRlmm-method FLXgetModelmatrix,FLXMRlmer-method FLXgetModelmatrix,FLXMRlmm-method FLXgetObs,FLXMRlmm-method FLXMRlmer FLXMRlmer-class FLXMRlmm FLXMRlmm-class FLXMRlmmfix-class FLXmstep,FLXMRlmer-method FLXmstep,FLXMRlmm-method FLXmstep,FLXMRlmmfix-method predict,FLXMRlmm-method rFLXM,FLXMRlmc,FLXcomponent-method rFLXM,FLXMRlmer,FLXcomponent-method rFLXM,FLXMRlmm,FLXcomponent-method rFLXM,FLXMRlmm,list-method
FlexMix Interface to Linear Mixed Models with Left-CensoringFLXMRlmc-class FLXMRlmcfix-class FLXMRlmmc FLXMRlmmc-class FLXMRlmmcfix-class predict,FLXMRlmc-method
FlexMix Interface to GAMsFLXMRmgcv FLXMRmgcv-class
FlexMix Interface to Multiomial Logit ModelsFLXMRmultinom
FlexMix Driver for Robust Estimation of Generalized Linear ModelsFLXMRrobglm FLXMRrobglm-class
FlexMix Interface to Zero Inflated Generalized Linear ModelsFLXgradlogLikfun,FLXMRziglm-method FLXMRziglm FLXMRziglm-class FLXreplaceParameters,FLXMRziglm-method refit,FLXMRziglm-method
Class "FLXnested"coerce,list,FLXnested-method coerce,NULL,FLXnested-method coerce,numeric,FLXnested-method FLXnested-class initialize,FLXnested-method
Creates the Concomitant Variable ModelFLXconstant FLXmultinom FLXPconstant FLXPmultinom show,FLXP-method
Class "FLXP"FLXP-class FLXPconstant-class FLXPmultinom-class initialize,FLXP-method
Extract Grouping Variablegroup group,flexmix-method group,FLXM-method group,FLXMRglmfix-method group-methods
Integrated Completed Likelihood CriterionICL,flexmix-method ICL,stepFlexmix-method
Kullback-Leibler DivergenceKLdiv,flexmix-method KLdiv,FLXMC-method KLdiv,FLXMRglm-method KLdiv,matrix-method
Methods for Function LapplyLapply,FLXRmstep-method
Methods for Function logLik in Package 'flexmix'logLik,flexmix-method logLik,stepFlexmix-method
Mehta TrialMehta
Artificial Example for Normal RegressionNregFix
Patents and R&D Spendingpatent
Rootogram of Posterior Probabilitiesplot,flexmix,missing-method plot-methods
Plot Confidence Ellipses for FLXMCmvnorm ResultsplotEll
Determine Cluster Membership and Posterior Probabilitiesclusters,flexmix,missing-method clusters,FLXdist,ANY-method posterior,flexmix,missing-method posterior,FLXdist,listOrdata.frame-method
Refit a Fitted ModelFLXRmstep-class FLXRoptim-class plot,FLXRoptim,missing-method refit,flexmix-method show,Coefmat-method show,FLXR-method summary,FLXRmstep-method summary,FLXRoptim-method
Relabel the Componentsrelabel relabel,FLXdist,character-method relabel,FLXdist,integer-method relabel,FLXdist,missing-method
Random Number Generator for Finite Mixturesrflexmix rflexmix,flexmix,missing-method rflexmix,FLXdist,listOrdata.frame-method rflexmix,FLXdist,numeric-method rFLXM rFLXM,FLXM,FLXcomponent-method rFLXM,FLXM,list-method rFLXM,FLXMC,FLXcomponent-method rFLXM,FLXMCbinom,FLXcomponent-method rFLXM,FLXMCmultinom,FLXcomponent-method rFLXM,FLXMRglm,FLXcomponent-method rFLXM,FLXMRglm,list-method rFLXM,FLXMRglmfix,list-method
Salmonella Reverse Mutagenicity AssaysalmonellaTA98
Epileptic Seizure Dataseizure
Run FlexMix RepeatedlygetModel,stepFlexmix-method initFlexmix initMethod initMethod-class plot,stepFlexmix,missing-method show,stepFlexmix-method stepFlexmix stepFlexmix-class unique,stepFlexmix-method
Tribolium Beetlestribolium
Trypanosometrypanosome
Survey Data on Brands of Scotch whiskey Consumedwhiskey whiskey_brands