Adj.Rand {shipunov} | R Documentation |
Adjusted Rand index
Description
Adjusted Rand index to compare different clusterings
Usage
Adj.Rand(cl1, cl2, ...)
Arguments
cl1 |
First classification (character vector of group names) |
cl2 |
Second classification |
... |
Further arguments to table() |
Details
Use 'useNA="ifany"' or similar option to take NAs as a separate class (for more explanations, see help for table() command).
Note that in rare cases, Adjusted Rand Index might become negative, this might be some evidence that differences between two partitions are "worse than random", i.e., there is a pattern in differences.
Value
Similarity: numerical vector of length 1
Author(s)
Alexey Shipunov
References
Hubert L. and Arabie P. 1985. Comparing partitions. Journal of Classification. 2. 193–218.
See Also
Examples
iris.dist <- dist(iris[, 1:4], method="manhattan")
iris.hclust <- hclust(iris.dist)
iris.3 <- cutree(iris.hclust, 3)
Adj.Rand(iris.3, iris[, 5])
[Package shipunov version 1.17.1 Index]