Learn R Programming

shipunov (version 1.4)

Adj.Rand: Adjusted Rand index

Description

Adjusted Rand index

Usage

Adj.Rand(cl1, cl2)

Arguments

cl1

First classification (character vector of group names)

cl2

Second classification

Value

Similarity: numerical vector of length 1

Details

Adjusted Rand Index.

References

Hubert L. and Arabie P. 1985. Comparing partitions. Journal of Classification. 2. 193--218.

See Also

Misclass

Examples

Run this code
# NOT RUN {
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])
# }

Run the code above in your browser using DataLab