Learn R Programming

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

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

Copy Link

Version

Install

install.packages('mixtools')

Monthly Downloads

11,902

Version

1.2.0

License

GPL (>= 2)

Maintainer

Derek S. Young

Last Published

February 7th, 2020

Functions in mixtools (1.2.0)

RTdata2

Reaction Time (RT) Data Set \# 2
RodFramedata

Rod and Frame Task Data Set
NOdata

Ethanol Fuel Data Set
CO2data

GNP and CO2 Data Set
boot.se

Performs Parametric Bootstrap for Standard Error Approximation
Habituationdata

Infant habituation data
aug.x

Augmented Predictor Function
boot.comp

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

Reaction Time (RT) Data Set
RanEffdata

Simulated Data from 2-Component Mixture of Regressions with Random Effects
density.spEM

Normal kernel density estimate for semiparametric EM output
logisregmixEM

EM Algorithm for Mixtures of Logistic Regressions
expRMM_EM

EM algorithm for Reliability Mixture Models (RMM) with right Censoring
compCDF

Plot the Component CDF
flaremixEM

EM Algorithm for Mixtures of Regressions with Flare
npEM

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

Log-Density for Multinomial Distribution
ellipse

Draw Two-Dimensional Ellipse Based on Mean and Covariance
depth

Elliptical and Spherical Depth
ddirichlet

Density Function for the Dirichlet Distribution
mixtools initializations

Initializations for Various EM Algorithms in 'mixtools'
matsqrt

Calculates the Square Root of a Diagonalizable Matrix
ise.npEM

Integrated Squared Error for a selected density from npEM output
normalmixMMlc

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

The Multivariate Normal Density
Waterdata

Water-Level Task Data Set
perm

Permutation Function
makemultdata

Produce Cutpoint Multinomial Data
mixtools-internal

Internal 'mixtools' Functions
mvnormalmixEM

EM Algorithm for Mixtures of Multivariate Normals
mixturegram

Mixturegrams
multmixEM

EM Algorithm for Mixtures of Multinomials
lambda.pert

Perturbation of Mixing Proportions
hmeEM

EM Algorithm for Mixtures-of-Experts
gammamixEM

EM Algorithm for Mixtures of Gamma Distributions
plot.spEMN01

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

Local Estimation for Lambda in Mixtures of Regressions
density.npEM

Normal kernel density estimate for nonparametric EM output
plot.npEM

Plot Nonparametric or Semiparametric EM Output
normalmixEM

EM Algorithm for Mixtures of Univariate Normals
multmixmodel.sel

Model Selection Mixtures of Multinomials
npMSL

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

EM-like Algorithm for Nonparametric Mixture Models with Conditionally Independent Multivariate Component Densities
plot.mixEM

Various Plots Pertaining to Mixture Models
normalmixEM2comp

Fast EM Algorithm for 2-Component Mixtures of Univariate Normals
parse.constraints

Constraint Function
post.beta

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

Plot output from Stochastic EM algorithm for semiparametric scaled mixture of censored data
plot.mvnpEM

Plots of Marginal Density Estimates from the mvnpEM Algorithm Output
plotFDR

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

Iterative Algorithm Using EM Algorithm for Mixtures of Regressions with Local Lambda Estimates
repnormmixmodel.sel

Model Selection in Mixtures of Normals with Repeated Measures
rmvnormmix

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

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

Add a Confidence Region or Bayesian Credible Region for Regression Lines to a Scatterplot
print.mvnpEM

Printing of Results from the mvnpEM Algorithm Output
repnormmixEM

EM Algorithm for Mixtures of Normals with Repeated Measurements
print.npEM

Printing non- and semi-parametric multivariate mixture model fits
summary.mvnpEM

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

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

Simulate from Mixtures of Normals
tonedata

Tone perception data
wkde

Weighted Univariate (Normal) Kernel Density Estimate
weibullRMM_SEM

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

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

EM Algorithm for Mixtures of Regressions
regmixEM.lambda

EM Algorithm for Mixtures of Regressions with Local Lambda Estimates
rweibullmix

Simulate from Mixtures of Weibull distributions
try.flare

Mixtures of Regressions with Flare MM Algorithm
segregmixEM

ECM Algorithm for Mixtures of Regressions with Changepoints
regmixMH

Metropolis-Hastings Algorithm for Mixtures of Regressions
regmixmodel.sel

Model Selection in Mixtures of Regressions
regmixEM.mixed

EM Algorithm for Mixtures of Regressions with Random Effects
spEMsymloc

Semiparametric EM-like Algorithm for univariate symmetric location mixture
spregmix

EM-like Algorithm for Semiparametric Mixtures of Regressions
test.equality.mixed

Performs Chi-Square Test for Mixed Effects Mixtures
rexpmix

Simulate from Mixtures of Exponentials
summary.spRMM

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

EM Algorithm for Mixtures of Poisson Regressions
plot.mixMCMC

Various Plots Pertaining to Mixture Model Output Using MCMC Methods
spEM

Semiparametric EM-like Algorithm for Mixtures of Independent Repeated Measurements
test.equality

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

Summarizing EM mixture model fits
plotweibullRMM

Plot sequences from the Stochastic EM algorithm for mixture of Weibull
spEMsymlocN01

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

Simulate from a Multivariate Normal Distribution
spRMM_SEM

Stochastic EM algorithm for semiparametric scaled mixture of censored data
tauequivnormalmixEM

Special EM Algorithm for three-component tau equivalence model
wquantile

Weighted quantiles