ARI: Adjusted Rand Index

Description Usage Arguments Value References Examples

Description

This function computes the Adjusted Rand Index

Usage

1
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

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

Example output

Attaching package: 'VarSelLCM'

The following object is masked from 'package:stats':

    predict

[1] 0.4556791

VarSelLCM documentation built on Oct. 23, 2020, 8:20 p.m.