densityMclust {mclust} | R Documentation |
Produces a density estimate for each data point using the optimal
mixture model from Mclust
.
densityMclust(x, ...)
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 |
If x
is univariate, there is an associated plot
method.
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 |
range |
The range of the input data (used as a default for plotting). |
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.
densityMclust(rivers) ## Not run: plot(densityMclust(rivers)) plot(densityMclust(rivers), data = rivers, xlim = c(0,1500)) ## End(Not run)