ari: Computes adjusted Rand Index

Description Usage Arguments Details Value References See Also Examples

Description

Computes adjusted Rand index.

Usage

1
ari(cls, hat_cls)

Arguments

cls

A numeric or character vector of labels.

hat_cls

A numeric or character vector of labels same length as cls.

Details

Measures the agreement between two sets of partitions. The upper bound of 1 implies perfect agreement. The expected value is zero if the partitions are random.

Value

Scaler specifying how closely two partitions agree.

References

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

See Also

minmis

Examples

1
2
3
4
5
6
7
set.seed(1984)
Y <- scale(iris[, -5])
model <- mfa(Y, g = 3, q = 3, nkmeans = 1, nrandom = 0)
#
ari(model$clust, iris[, 5])
#
minmis(model$clust, iris[, 5])

suren-rathnayake/EMMIXmfa documentation built on May 17, 2019, 8:45 p.m.