clusterStat {prclust} | R Documentation |
Suppose we know the true cluster results beforehand. clusterStat provides Rand, adjusted Rand, Jaccard index to measure the quality of a cluster results.
clusterStat(trueGroup, group)
trueGroup |
The true cluster results. |
group |
The estimated cluster results, not neccessary calculating by PRclust. |
The return value is a "clusterStat" class, providing the following information.
Rand |
Rand Index |
AdjustedRand |
Adjusted Rand Index |
Jaccard |
Jaccard Index |
Chong Wu
a <- rep(1:3,3) a b <- rep(c(4:6),3) b clusterStat(a,b)