Learn R Programming

VarSelLCM (version 2.1.3.1)

predict: Prediction of the cluster memberships

Description

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

Usage

# S4 method for 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.