Best model based on BIC
Determines the best model from clustering via mclustBIC
for a given set of model parameterizations and numbers of components.
mclustModel(data, BICvalues, G, modelNames, ...)
data |
The matrix or vector of observations used to generate ‘object’. |
BICvalues |
An |
G |
A vector of integers giving the numbers of mixture components (clusters)
from which the best model according to BIC will be selected
( |
modelNames |
A vector of integers giving the model parameterizations
from which the best model according to BIC will be selected
( |
... |
Not used. For generic/method consistency. |
A list giving the optimal (according to BIC) parameters,
conditional probabilities z
, and log-likelihood,
together with the associated classification and its uncertainty.
The details of the output components are as follows:
modelName |
A character string indicating the model. The help file for
|
n |
The number of observations in the data. |
d |
The dimension of the data. |
G |
The number of components in the Gaussian mixture model corresponding to the optimal BIC. |
bic |
The optimal BIC value. |
loglik |
The log-likelihood corresponding to the optimal BIC. |
parameters |
A list with the following components:
|
z |
A matrix whose [i,k]th entry is the probability that observation i in the test data belongs to the kth class. |
irisBIC <- mclustBIC(iris[,-5]) mclustModel(iris[,-5], irisBIC) mclustModel(iris[,-5], irisBIC, G = 1:6, modelNames = c("VII", "VVI", "VVV"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.