extractMixtCompObject {RMixtComp} | R Documentation |
Extract a MixtComp object
Description
Extract a MixtComp object from a MixtCompLearn object
Usage
extractMixtCompObject(object, K)
Arguments
object |
mixtCompLearn output |
K |
number of classes of the model to extract |
Value
a MixtComp
object containing the clustering model with K classes
Author(s)
Quentin Grimonprez
Examples
# run clustering
resLearn <- mixtCompLearn(data.frame(x = rnorm(500)),
nClass = 1:3, criterion = "ICL",
nRun = 1, nCore = 1
)
# extract the model with 2 classes
clustModel <- extractMixtCompObject(resLearn, K = 2)
[Package RMixtComp version 4.1.4 Index]