Learn R Programming

⚠️There's a newer version (2.0.0) of this package.Take me there.

mixtools (version 1.1.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 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.

Copy Link

Version

Install

install.packages('mixtools')

Monthly Downloads

11,902

Version

1.1.0

License

GPL (>= 2)

Maintainer

Derek S. Young

Last Published

March 10th, 2017

Functions in mixtools (1.1.0)

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
lambda

Local Estimation for Lambda in Mixtures of Regressions
compCDF

Plot the Component CDF
boot.comp

Performs Parametric Bootstrap for Sequentially Testing the Number of Components in Various Mixture Models
density.spEM

Normal kernel density estimate for semiparametric EM output
lambda.pert

Perturbation of Mixing Proportions
gammamixEM

EM Algorithm for Mixtures of Gamma Distributions
flaremixEM

EM Algorithm for Mixtures of Regressions with Flare
ddirichlet

Density Function for the Dirichlet Distribution
matsqrt

Calculates the Square Root of a Diagonalizable Matrix
makemultdata

Produce Cutpoint Multinomial Data
plotexpRMM

Plot sequences from the EM algorithm for censored mixture of exponentials
ellipse

Draw Two-Dimensional Ellipse Based on Mean and Covariance
hmeEM

EM Algorithm for Mixtures-of-Experts
npEM

Nonparametric EM-like Algorithm for Mixtures of Independent Repeated Measurements
multmixmodel.sel

Model Selection Mixtures of Multinomials
normalmixMMlc

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

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

Elliptical and Spherical Depth
logisregmixEM

EM Algorithm for Mixtures of Logistic Regressions
ldmult

Log-Density for Multinomial Distribution
plotseq.npEM

Plotting sequences of estimates from non- or semiparametric EM-like Algorithm
npMSL

Nonparametric EM-like Algorithm for Mixtures of Independent Repeated Measurements - Maximum Smoothed Likelihood version
density.npEM

Normal kernel density estimate for nonparametric EM output
normalmixEM

EM Algorithm for Mixtures of Univariate Normals
mvnpEM

EM-like Algorithm for Nonparametric Mixture Models with Conditionally Independent Multivariate Component Densities
print.mvnpEM

Printing of Results from the mvnpEM Algorithm Output
plot.mixMCMC

Various Plots Pertaining to Mixture Model Output Using MCMC Methods
print.npEM

Printing non- and semi-parametric multivariate mixture model fits
parse.constraints

Constraint Function
repnormmixmodel.sel

Model Selection in Mixtures of Normals with Repeated Measures
spEMsymloc

Semiparametric EM-like Algorithm for univariate symmetric location mixture
plot.mvnpEM

Plots of Marginal Density Estimates from the mvnpEM Algorithm Output
mixtools initializations

Initializations for Various EM Algorithms in 'mixtools'
perm

Permutation Function
spEMsymlocN01

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

EM Algorithm for Mixtures of Multivariate Normals
rexpmix

Simulate from Mixtures of Exponentials
plot.mixEM

Various Plots Pertaining to Mixture Models
plot.npEM

Plot Nonparametric or Semiparametric EM Output
wquantile

Weighted quantiles
spRMM_SEM

Stochastic EM algorithm for semiparametric scaled mixture of censored data
rweibullmix

Simulate from Mixtures of Weibull distributions
plotspRMM

Plot output from Stochastic EM algorithm for semiparametric scaled mixture of censored data
poisregmixEM

EM Algorithm for Mixtures of Poisson Regressions
test.equality.mixed

Performs Chi-Square Test for Mixed Effects Mixtures
post.beta

Summary of Posterior Regression Coefficients in Mixtures of Random Effects Regressions
wkde

Weighted Univariate (Normal) Kernel Density Estimate
spregmix

EM-like Algorithm for Semiparametric Mixtures of Regressions
rnormmix

Simulate from Mixtures of Normals
summary.spRMM

Summarizing fits from Stochastic EM algorithm for semiparametric scaled mixture of censored data
regcr

Add a Confidence Region or Bayesian Credible Region for Regression Lines to a Scatterplot
summary.npEM

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

Plot sequences from the Stochastic EM algorithm for mixture of Weibull
try.flare

Mixtures of Regressions with Flare MM Algorithm
rmvnorm

Simulate from a Multivariate Normal Distribution
tonedata

Tone perception data
regmixEM

EM Algorithm for Mixtures of Regressions
rmvnormmix

Simulate from Multivariate (repeated measures) Mixtures of Normals
ise.npEM

Integrated Squared Error for a selected density from npEM output
regmixEM.mixed

EM Algorithm for Mixtures of Regressions with Random Effects
mixtools-internal

Internal 'mixtools' Functions
summary.mixEM

Summarizing EM mixture model fits
regmixMH

Metropolis-Hastings Algorithm for Mixtures of Regressions
multmixEM

EM Algorithm for Mixtures of Multinomials
summary.mvnpEM

Summarizing Fits for Nonparametric Mixture Models with Conditionally Independent Multivariate Component Densities
weibullRMM_SEM

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

Plot False Discovery Rate (FDR) estimates from output by EM-like strategies
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
test.equality

Performs Chi-Square Tests for Scale and Location Mixtures
plot.spEMN01

Plot mixture pdf for the semiparametric mixture model output by spEMsymlocN01
regmixmodel.sel

Model Selection in Mixtures of Regressions
segregmixEM

ECM Algorithm for Mixtures of Regressions with Changepoints
tauequivnormalmixEM

Special EM Algorithm for three-component tau equivalence model
repnormmixEM

EM Algorithm for Mixtures of Normals with Repeated Measurements
spEM

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

Rod and Frame Task Data Set
NOdata

Ethanol Fuel Data Set
Waterdata

Water-Level Task Data Set
aug.x

Augmented Predictor Function
RanEffdata

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

Infant habituation data
RTdata2

Reaction Time (RT) Data Set \# 2
RTdata

Reaction Time (RT) Data Set
CO2data

GNP and CO2 Data Set