AdjRkl: Adjusted Rand Index

Description Usage Arguments Value Author(s) References Examples

View source: R/miscfunctions.R

Description

The Adjusted Rand Index is a measure of similarity for two groupings or clusterings. A value of 1 indicates total agreement.

Usage

1
AdjRkl(part1, part2)

Arguments

part1

First partitioning.

part2

Second partitioning.

Value

Number.

Author(s)

Ron Wehrens

References

R. Wehrens. "Chemometrics with R - Multivariate Data Analysis in the Natural Sciences and Life Sciences". Springer, Heidelberg, 2011.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
if (require("kohonen")) {
  data(wines, package = "kohonen")
  wines.dist <- dist(scale(wines))
  wines.sl <- hclust(wines.dist, method = "single")
  wines.cl <- hclust(wines.dist, method = "complete")

  AdjRkl(cutree(wines.sl, 4), cutree(wines.cl, 4))
} else {
  cat("Package kohonen not available.\nInstall it by typing 'install.packages(\"kohonen\")'")
}

ChemometricsWithR documentation built on May 2, 2019, 10:25 a.m.