Learn R Programming

mixtools (version 2.0.0)

Tools for Analyzing Finite Mixture Models

Description

Analyzes finite mixture models for various parametric and semiparametric settings. This includes mixtures of parametric distributions (normal, multivariate normal, multinomial, gamma), various Reliability Mixture Models (RMMs), mixtures-of-regressions settings (linear regression, logistic regression, Poisson regression, linear regression with changepoints, predictor-dependent mixing proportions, random effects regressions, hierarchical mixtures-of-experts), and tools for selecting the number of components (bootstrapping the likelihood ratio test statistic, mixturegrams, and model selection criteria). Bayesian estimation of mixtures-of-linear-regressions models is available as well as a novel data depth method for obtaining credible bands. This package is based upon work supported by the National Science Foundation under Grant No. SES-0518772 and the Chan Zuckerberg Initiative: Essential Open Source Software for Science (Grant No. 2020-255193).

Copy Link

Version

Install

install.packages('mixtools')

Monthly Downloads

6,788

Version

2.0.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

December 5th, 2022

Functions in mixtools (2.0.0)

RTdata2

Reaction Time (RT) Data Set (No. 2)
aug.x

Augmented Predictor Function
Waterdata

Water-Level Task Data Set
RanEffdata

Simulated Data from 2-Component Mixture of Regressions with Random Effects
CO2data

GNP and CO2 Data Set
RodFramedata

Rod and Frame Task Data Set
RTdata

Reaction Time (RT) Data Set
NOdata

Ethanol Fuel Data Set
boot.comp

Performs Parametric Bootstrap for Sequentially Testing the Number of Components in Various Mixture Models
Habituationdata

Infant habituation data
density.spEM

Normal kernel density estimate for semiparametric EM output
flaremixEM

EM Algorithm for Mixtures of Regressions with Flare
dmvnorm

The Multivariate Normal Density
expRMM_EM

EM algorithm for Reliability Mixture Models (RMM) with right Censoring
boot.se

Performs Parametric Bootstrap for Standard Error Approximation
ellipse

Draw Two-Dimensional Ellipse Based on Mean and Covariance
ddirichlet

Density Function for the Dirichlet Distribution
density.npEM

Normal kernel density estimate for nonparametric EM output
compCDF

Plot the Component CDF
depth

Elliptical and Spherical Depth
makemultdata

Produce Cutpoint Multinomial Data
ldmult

Log-Density for Multinomial Distribution
ise.npEM

Integrated Squared Error for a selected density from npEM output
mixtools initializations

Initializations for Various EM Algorithms in 'mixtools'
logisregmixEM

EM Algorithm for Mixtures of Logistic Regressions
gammamixEM

EM Algorithm for Mixtures of Gamma Distributions
hmeEM

EM Algorithm for Mixtures-of-Experts
lambda.pert

Perturbation of Mixing Proportions
lambda

Local Estimation for Lambda in Mixtures of Regressions
matsqrt

Calculates the Square Root of a Diagonalizable Matrix
multmixmodel.sel

Model Selection Mixtures of Multinomials
mvnormalmixEM

EM Algorithm for Mixtures of Multivariate Normals
normalmixMMlc

EC-MM Algorithm for Mixtures of Univariate Normals with linear constraints
normalmixEM

EM Algorithm for Mixtures of Univariate Normals
mvnpEM

EM-like Algorithm for Nonparametric Mixture Models with Conditionally Independent Multivariate Component Densities
normalmixEM2comp

Fast EM Algorithm for 2-Component Mixtures of Univariate Normals
npEM

Nonparametric EM-like Algorithm for Mixtures of Independent Repeated Measurements
mixturegram

Mixturegrams
multmixEM

EM Algorithm for Mixtures of Multinomials
mixtools-internal

Internal 'mixtools' Functions
plot.mixEM

Various Plots Pertaining to Mixture Models
plot.npEM

Plot Nonparametric or Semiparametric EM Output
npMSL

Nonparametric EM-like Algorithm for Mixtures of Independent Repeated Measurements - Maximum Smoothed Likelihood version
plotexpRMM

Plot sequences from the EM algorithm for censored mixture of exponentials
plot.mvnpEM

Plots of Marginal Density Estimates from the mvnpEM Algorithm Output
parse.constraints

Constraint Function
plotFDR

Plot False Discovery Rate (FDR) estimates from output by EM-like strategies
plot.mixMCMC

Various Plots Pertaining to Mixture Model Output Using MCMC Methods
perm

Permutation Function
plot.spEMN01

Plot mixture pdf for the semiparametric mixture model output by spEMsymlocN01
plotly_mixMCMC

Various Plots Pertaining to Mixture Model Output Using MCMC Methods using plotly
plotly_FDR

Plot False Discovery Rate (FDR) estimates from output by EM-like strategies using plotly
plotly_compCDF

Plot the Component CDF using plotly
plotly_expRMM

Plot sequences from the EM algorithm for censored mixture of exponentials using plotly
plotly_mixturegram

Mixturegrams
plotly_ellipse

Draw Two-Dimensional Ellipse Based on Mean and Covariance using plotly
plotly_mixEM

Visualization of output of mixEM function using plotly
plotly_ise.npEM

Visualization of Integrated Squared Error for a selected density from npEM output using plotly
plotly_post.beta

Visualization of Posterior Regression Coefficients in Mixtures of Random Effects Regressions using plotly
plotly_npEM

Plot Nonparametric or Semiparametric EM Output
plotly_spEMN01

Plot mixture pdf for the semiparametric mixture model output by spEMsymlocN01 using plotly.
plotly_weibullRMM

Plot sequences from the Stochastic EM algorithm for mixture of Weibull using plotly
plotspRMM

Plot output from Stochastic EM algorithm for semiparametric scaled mixture of censored data
plotseq.npEM

Plotting sequences of estimates from non- or semiparametric EM-like Algorithm
post.beta

Summary of Posterior Regression Coefficients in Mixtures of Random Effects Regressions
plotly_seq.npEM

Plotting sequences of estimates from non- or semiparametric EM-like Algorithm using plotly
plotly_spRMM

Plot output from Stochastic EM algorithm for semiparametric scaled mixture of censored data using plotly.
print.mvnpEM

Printing of Results from the mvnpEM Algorithm Output
poisregmixEM

EM Algorithm for Mixtures of Poisson Regressions
plotweibullRMM

Plot sequences from the Stochastic EM algorithm for mixture of Weibull
regmixmodel.sel

Model Selection in Mixtures of Regressions
regmixEM.lambda

EM Algorithm for Mixtures of Regressions with Local Lambda Estimates
regmixEM.loc

Iterative Algorithm Using EM Algorithm for Mixtures of Regressions with Local Lambda Estimates
regmixMH

Metropolis-Hastings Algorithm for Mixtures of Regressions
repnormmixEM

EM Algorithm for Mixtures of Normals with Repeated Measurements
regmixEM.mixed

EM Algorithm for Mixtures of Regressions with Random Effects
regmixEM

EM Algorithm for Mixtures of Regressions
print.npEM

Printing non- and semi-parametric multivariate mixture model fits
repnormmixmodel.sel

Model Selection in Mixtures of Normals with Repeated Measures
regcr

Add a Confidence Region or Bayesian Credible Region for Regression Lines to a Scatterplot
spRMM_SEM

Stochastic EM algorithm for semiparametric scaled mixture of censored data
spEM

Semiparametric EM-like Algorithm for Mixtures of Independent Repeated Measurements
rweibullmix

Simulate from Mixtures of Weibull distributions
spEMsymloc

Semiparametric EM-like Algorithm for univariate symmetric location mixture
spEMsymlocN01

semiparametric EM-like algorithm for univariate mixture in False Discovery Rate (FDR) estimation
segregmixEM

ECM Algorithm for Mixtures of Regressions with Changepoints
rnormmix

Simulate from Mixtures of Normals
rmvnorm

Simulate from a Multivariate Normal Distribution
rmvnormmix

Simulate from Multivariate (repeated measures) Mixtures of Normals
rexpmix

Simulate from Mixtures of Exponentials
test.equality.mixed

Performs Chi-Square Test for Mixed Effects Mixtures
test.equality

Performs Chi-Square Tests for Scale and Location Mixtures
summary.mvnpEM

Summarizing Fits for Nonparametric Mixture Models with Conditionally Independent Multivariate Component Densities
try.flare

Mixtures of Regressions with Flare MM Algorithm
tonedata

Tone perception data
tauequivnormalmixEM

Special EM Algorithm for three-component tau equivalence model
summary.spRMM

Summarizing fits from Stochastic EM algorithm for semiparametric scaled mixture of censored data
summary.npEM

Summarizing non- and semi-parametric multivariate mixture model fits
spregmix

EM-like Algorithm for Semiparametric Mixtures of Regressions
weibullRMM_SEM

St-EM algorithm for Reliability Mixture Models (RMM) of Weibull with right Censoring
summary.mixEM

Summarizing EM mixture model fits
wkde

Weighted Univariate (Normal) Kernel Density Estimate
wquantile

Weighted quantiles