compare: compare two clusters

Description Usage Arguments Value Examples

Description

compare two clusters

Usage

1
compare(clustering, alt.clustering)

Arguments

clustering

an integer vector of length of the number of cases, which indicates a clustering

alt.clustering

an integer vector such as for clustering, indicating an alternative clustering

Value

jaccard

rand

ajusted.rand

vi

nmi

Examples

1
2
3
4
5
data(iris)
X <- scale(iris[,1:4])
c1 <- kmeans(X, 3)
c2 <- kmeans(X, 4)
compare(c1$cluster, c2$cluster)

evanwang1990/ClusterTools documentation built on May 16, 2019, 9:37 a.m.