View source: R/densityMclust.R
dens | R Documentation |
Computes densities of observations in parameterized MVN mixtures.
dens(data, modelName, parameters, logarithm = FALSE, warn=NULL, ...)
data |
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. |
modelName |
A character string indicating the model. The help file for
|
parameters |
The parameters of the model:
|
logarithm |
A logical value indicating whether or not the logarithm of the component densities should be returned. The default is to return the component densities, obtained from the log component densities by exponentiation. |
warn |
A logical value indicating whether or not a warning should be issued
when computations fail. The default is |
... |
Catches unused arguments in indirect or list calls via |
A numeric vector whose ith component is the density of the
ith observation in data
in the MVN mixture specified
by parameters
.
cdens
,
mclust.options
,
do.call
faithfulModel <- Mclust(faithful)
Dens <- dens(modelName = faithfulModel$modelName, data = faithful,
parameters = faithfulModel$parameters)
Dens
## alternative call
do.call("dens", faithfulModel)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.