ari | R Documentation |
Computes adjusted Rand index.
ari(cls, hat_cls)
cls |
A numeric or character vector of labels. |
hat_cls |
A numeric or character vector of labels same length as |
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.
Scaler specifying how closely two partitions agree.
Hubert L, and Arabie P (1985). Comparing Partitions. Journal of the Classification 2, 193–218.
minmis
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])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.