mixmodCluster {Rmixmod} | R Documentation |
Create an instance of the [MixmodCluster
] class
Description
This 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
].
Usage
mixmodCluster(...)
Arguments
... |
all arguments are transfered to the MixmodCluster constructor. Valid arguments are:
|
Value
Returns an instance of the [MixmodCluster
] class.
Those two attributes will contain all outputs:
- results
a list of [
MixmodResults
] object containing all the results sorted in ascending order according to the given criterion.- bestResult
a S4 [
MixmodResults
] object containing the best model results.
Author(s)
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
Examples
## 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)