ARI: Adjusted Rand index

View source: R/evalClusterQuality.R

ARIR Documentation

Adjusted Rand index

Description

Calculate the adjusted Rand index (ARI) 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

list of the following:

  • 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

  • p.value P value of observed ARI (or NARI) value

Author(s)

J.C. Castura

References

Hubert, L., & Arabie, P. (1985). Comparing partitions. Journal of Classification, 2, 193–218. \Sexpr[results=rd]{tools:::Rd_expr_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. \Sexpr[results=rd]{tools:::Rd_expr_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)

cata documentation built on April 4, 2025, 5:17 a.m.

Related to ARI in cata...