compare: Adjusted Rand Index Comaprison Between Algorithms

Description Usage Arguments Value References Examples

Description

An Adjusted Rand Index comparison of the assignments between different clustering algorithms.

Usage

1

Arguments

...

A series of outputs from assign_cluster for various cluster algorithmns.

Value

Returns a pair-wise comparison matrix of Adjusted Rand Indices for algorithm. Higher Adjusted Rand Index scores indicate higher cluster assignment agreement.

References

http://faculty.washington.edu/kayee/pca/supp.pdf

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
compare(
    assignments$hierarchical_assignment,
    assignments$kmeans_assignment,
    assignments$skmeans_assignment,
    assignments$nmf_assignment
)

## Understanding the ARI
set.seed(10)
w <- sample(1:10, 40, TRUE)
x <- 11-w
set.seed(20)
y <- sample(1:10, 40, TRUE)
set.seed(50)
z <- sample(1:10, 40, TRUE)

data.frame(w, x, y, z)

library(mclust)

mclust::adjustedRandIndex(w, x)
mclust::adjustedRandIndex(x, y)
mclust::adjustedRandIndex(x, z)

trinker/clustext documentation built on May 31, 2019, 8:41 p.m.