ARI {MixGHD}R Documentation

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. .

Details

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

Value

The adjusted Rand index value

Author(s)

Cristina Tortora Maintainer: Cristina Tortora <cristina.tortora@sjsu.edu>

References

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

Examples

##loading banknote data
data(banknote)

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

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


[Package MixGHD version 2.3.7 Index]