Description Usage Arguments Value Author(s) References Examples
View source: R/miscfunctions.R
The Adjusted Rand Index is a measure of similarity for two groupings or clusterings. A value of 1 indicates total agreement.
1 | AdjRkl(part1, part2)
|
part1 |
First partitioning. |
part2 |
Second partitioning. |
Number.
Ron Wehrens
R. Wehrens. "Chemometrics with R - Multivariate Data Analysis in the Natural Sciences and Life Sciences". Springer, Heidelberg, 2011.
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\")'")
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.