Prediction of the cluster memberships
This function gives the probabilities of classification for new observations by using the mixture model fit with the function VarSelCluster
.
methods
## S4 method for signature 'VSLCMresults' predict(object, newdata, type = "probability")
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)Returns a matrix of the probabilities of classification.