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

Description Usage Arguments Examples

Description

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

Usage

1
2
## S4 method for signature '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

1
2
3
4
5
6
7
8
# 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)

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