densityMclust {mclust}R Documentation

Density Estimation via Model-Based Clustering

Description

Produces a density estimate for each data point using the optimal mixture model from Mclust.

Usage

densityMclust(x, ...)

Arguments

x

A numeric vector, matrix, or data frame of observations. Categorical variables are not allowed. If a matrix or data frame, rows correspond to observations and columns correspond to variables.

...

Additional arguments for the Mclust function.

Details

If x is univariate, there is an associated plot method.

Value

An object of class densityMclust, which is the density of the input $x$ according to the optimal model from Mclust, accompanied by the following attributes:

modelName

A character string denoting the model at which the optimal BIC occurs.

parameters

The parameters of the Mclust model.

range

The range of the input data (used as a default for plotting).

References

C. Fraley and A. E. Raftery (2002). Model-based clustering, discriminant analysis, and density estimation. Journal of the American Statistical Association 97:611:631.

C. Fraley and A. E. Raftery (2006, revised in 2010). MCLUST Version 3 for R: Normal Mixture Modeling and Model-Based Clustering, Technical Report no. 504, Department of Statistics, University of Washington.

See Also

Mclust, plot.densityMclust,

Examples


  densityMclust(rivers)
## Not run: 
 plot(densityMclust(rivers))
 plot(densityMclust(rivers), data = rivers, xlim = c(0,1500))

## End(Not run)

[Package mclust version 3.4.11 Index]