extractMixtCompObject: Extract a MixtComp object

View source: R/miscellaneous.R

extractMixtCompObjectR 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)


RMixtComp documentation built on July 9, 2023, 6:06 p.m.