powered by
Compares two classifications using the adjusted Rand index (ARI).
ARI(x=NULL, y=NULL)
A n dimensional vector of class labels.
A n dimensional vector of class labels. .
The adjusted Rand index value
The ARI has expected value 0 in case of random partition, it is equal to one in case of perfect agreement..
L. Hubert and P. Arabie (1985) Comparing Partitions, Journal of the Classification 2:193-218.
# 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