ARI {VarSelLCM}R Documentation

Adjusted Rand Index

Description

This function computes the Adjusted Rand Index

Usage

ARI(x, y)

Arguments

x

vector defining a partition.

y

vector defining a partition of whose length is equal to the length of x.

Value

numeric

References

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

Examples

x <- sample(1:2, 20, replace=TRUE)
y <- x
y[1:5] <- sample(1:2, 5, replace=TRUE)
ARI(x, y)

[Package VarSelLCM version 2.1.3.1 Index]