View source: R/miscellaneous.R
extractMixtCompObject | R Documentation |
Extract a MixtComp object from a MixtCompLearn object
extractMixtCompObject(object, K)
object |
mixtCompLearn output |
K |
number of classes of the model to extract |
a MixtComp
object containing the clustering model with K classes
Quentin Grimonprez
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.