predict-methods function

Prediction of the cluster memberships

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

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)

Returns

Returns a matrix of the probabilities of classification.