learnMixedData {MixAll} | R Documentation |
This function learn the optimal mixture model when the class labels are known
according to the criterion
among the list of model given in models
.
Description
This function learn the optimal mixture model when the class labels are known
according to the criterion
among the list of model given in models
.
Usage
learnMixedData(
data,
models,
labels,
prop = NULL,
algo = "impute",
nbIter = 100,
epsilon = 1e-08,
criterion = "ICL",
nbCore = 1
)
Arguments
data |
[ |
models |
either a [ |
labels |
vector or factors giving the label class. |
prop |
[ |
algo |
character defining the algo to used in order to learn the model. Possible values: "simul" (default), "impute" (faster but can produce biased results). |
nbIter |
integer giving the number of iterations to do. algo is "impute" this is the maximal authorized number of iterations. Default is 100. |
epsilon |
real giving the variation of the log-likelihood for stopping the iterations. Not used if algo is "simul". Default value is 1e-08. |
criterion |
character defining the criterion to select the best model. The best model is the one with the lowest criterion value. Possible values: "BIC", "AIC", "ICL", "ML". Default is "ICL". |
nbCore |
integer defining the number of processors to use (default is 1, 0 for all). |
Value
An instance of the [ClusterMixedDataModel
] class.
Author(s)
Serge Iovleff
Examples
## A quantitative example with the heart disease data set
data(HeartDisease.cat)
data(HeartDisease.cont)
## with default values
ldata = list(HeartDisease.cat, HeartDisease.cont);
models = c("categorical_pk_pjk","gaussian_pk_sjk")
model <- clusterMixedData(ldata, models, nbCluster=2:5, strategy = clusterFastStrategy())
## get summary
summary(model)
## get estimated missing values
missingValues(model)
## print model (a detailed and very long output)
print(model)
## use graphics functions
plot(model)