predict-methods: Prediction of the cluster memberships

Description Usage Arguments Value

Description

This function gives the probabilities of classification for new observations by using the mixture model fit with the function VarSelCluster.

Usage

1
2
## S4 method for signature 'VSLCMresults'
predict(object, newdata, type = "probability")

Arguments

object

instance of VSLCMresults.

newdata

data.frame of the observations to classify.

type

the type of prediction: probability of classification (probability) or the partition (partition)

Value

Returns a matrix of the probabilities of classification.


VarSelLCM documentation built on Oct. 23, 2020, 8:20 p.m.