Description Usage Arguments Details Value Methods (by generic) Author(s) References Examples
Computes the adjusted Rand index and the confidence interval, comparing two classifications from a contingency table.
print method for ari class
1 2 3 4 
mat 
A matrix of integers representing the contingency table of reference 
alpha 
A single number strictly included between 0 and 1 representing the significance level of interest. (default is 0.05) 
digits 
An integer for the returned significant digits to return (default is 2) 
x 
an object used to select a method. 
... 
further arguments passed to or from other methods. 
The adjusted Rand Index (ARI) should be interpreted as follows:
ARI >= 0.90 excellent recovery; 0.80 =< ARI < 0.90 good recovery; 0.65 =< ARI < 0.80 moderate recovery; ARI < 0.65 poor recovery.
As the confidence interval is based on the approximation to the Normal distribution, it is recommended to trust in the confidence interval only in cases of total number of object clustered greater than 100.
An object of class ari
with the following elements:
AdjustedRandIndex 
The adjusted Rand Index 
CI 
The confidence interval 
print
:
Paola Tellaroli, <paola [dot] tellaroli [at] unipd [dot] it>;
L. Hubert and P. Arabie (1985) Comparing partitions, Journal of Classification, 2, 193218.
E.M. Qannari, P. Courcoux and Faye P. (2014) Significance test of the adjusted Rand index. Application to the free sorting task, Food Quality and Preference, (32)9397
M.H. Samuh, F. Leisch, and L. Finos (2014), Tests for Random Agreement in Cluster Analysis, Statistica ApplicataItalian Journal of Applied Statistics, vol. 26, no. 3, pp. 219234.
D. Steinley (2004) Properties of the HubertArabie Adjusted Rand Index, Psychological Methods, 9(3), 386396
D. Steinley, M.J. Brusco, L. Hubert (2016) The Variance of the Adjusted Rand Index, Psychological Methods, 21(2), 261272
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23  #### This example compares the adjusted Rand Index as computed on the
### partitions given by Ward's algorithm with the ground truth on the
### famous Iris data set by the adjustedRandIndex function
### {mclust package} and by the ari function.
library(CrossClustering)
library(mclust)
clusters < iris[5] %>%
dist %>%
hclust(method = 'ward.D') %>%
cutree(k = 3)
ground_truth < iris[[5]] %>% as.numeric()
mc_ari < adjustedRandIndex(clusters, ground_truth)
mc_ari
ari_cc < table(ground_truth, clusters) %>%
ari(digits = 7)
ari_cc
all.equal(mc_ari, unclass(ari_cc), check.attributes = FALSE)

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.