ARI {cata}R Documentation

Adjusted Rand index

Description

Calculate the adjusted Rand index between two sets of cluster memberships.

Usage

ARI(x, y, signif = FALSE, n = 1000)

Arguments

x

vector of cluster memberships (integers)

y

vector of cluster memberships (integers)

signif

conduct significance test; default is FALSE

n

number of replicates in Monte Carlo significance test

Value

ari adjusted Rand index

nari normalized adjusted Rand index

sim.mean average value of null distribution (should be closed to zero)

sim.var variance of null distribution

pvalue P value of observed ARI (or NARI) value

References

Hubert, L., & Arabie, P. (1985). Comparing partitions. Journal of Classification, 2, 193–218. doi:10.1007/BF01908075.

Qannari, E.M., Courcoux, P., & Faye, P. (2014). Significance test of the adjusted Rand index. Application to the free sorting task. Food Quality and Preference, 32, 93-97. doi:10.1016/j.foodqual.2013.05.005.

Examples

x <- sample(1:3, 20, replace = TRUE)
y <- sample(1:3, 20, replace = TRUE)

ARI(x, y, signif = FALSE)

[Package cata version 0.1.0.6 Index]