Learn R Programming

VarSelLCM (version 2.1.3.1)

fitted.values: Extract the partition or the probabilities of classification

Description

This function returns the probabilities of classification or the partition among the observations of an instance of '>VSLCMresults.

Usage

# S4 method for VSLCMresults
fitted.values(object, type = "partition")

Arguments

object

instance of '>VSLCMresults.

type

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

Examples

Run this code
# NOT RUN {
# Data loading:
data(heart)

# Cluster analysis without variable selection (number of clusters between 1 and 3)
res <- VarSelCluster(heart[,-13], 2, vbleSelec = FALSE)

# Get the ICL value
fitted.values(res)
# }

Run the code above in your browser using DataLab