View source: R/MixmodCluster.R
mixmodCluster | R Documentation |
MixmodCluster
] classThis function computes an optimal mixture model according to the criteria furnished,
and the list of model defined in [Model
], using the algorithm specified in
[Strategy
].
mixmodCluster(...)
... |
all arguments are transfered to the MixmodCluster constructor. Valid arguments are:
|
Returns an instance of the [MixmodCluster
] class.
Those two attributes will contain all outputs:
a list of [MixmodResults
] object containing all the results sorted in ascending order
according to the given criterion.
a S4 [MixmodResults
] object containing the best model results.
Florent Langrognet and Remi Lebret and Christian Poli ans Serge Iovleff, with contributions from C. Biernacki and G. Celeux and G. Govaert contact@mixmod.org
## A quantitative example with the famous geyser data set
data(geyser)
## with default values
mixmodCluster(geyser, nbCluster = 2:6)
## A qualitative example with the birds data set
data(birds)
mixmodCluster(
data = birds, nbCluster = 2:5, criterion = c("BIC", "ICL", "NEC"),
model = mixmodMultinomialModel()
)
## use graphics functions
xem <- mixmodCluster(data = geyser, nbCluster = 3)
## Not run:
plot(xem)
hist(xem)
## End(Not run)
## get summary
summary(xem)
## A composite example with a heterogeneous data set
data(heterodata)
mixmodCluster(heterodata, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.