View source: R/evalClusterQuality.R
ARI | R Documentation |
Calculate the adjusted Rand index between two sets of cluster memberships.
ARI(x, y, signif = FALSE, n = 1000)
x |
vector of cluster memberships (integers) |
y |
vector of cluster memberships (integers) |
signif |
conduct significance test; default is |
n |
number of replicates in Monte Carlo significance test |
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
pvalue P value of observed ARI (or NARI) value
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")}.
x <- sample(1:3, 20, replace = TRUE)
y <- sample(1:3, 20, replace = TRUE)
ARI(x, y, signif = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.