Learn R Programming

MixGHD (version 2.3.7)

ARI: Adjusted Rand Index.

Description

Compares two classifications using the adjusted Rand index (ARI).

Usage

ARI(x=NULL, y=NULL)

Arguments

x

A n dimensional vector of class labels.

y

A n dimensional vector of class labels. .

Value

The adjusted Rand index value

Details

The ARI has expected value 0 in case of random partition, it is equal to one in case of perfect agreement..

References

L. Hubert and P. Arabie (1985) Comparing Partitions, Journal of the Classification 2:193-218.

Examples

Run this code
# NOT RUN {
##loading banknote data
data(banknote)

##model estimation
res=MGHD(data=banknote[,2:7],  G=2   )

#result
ARI(res@map, banknote[,1])

# }

Run the code above in your browser using DataLab