Learn R Programming

prclust (version 1.3)

clusterStat: External Evaluation of Cluster Results

Description

Suppose we know the true cluster results beforehand. clusterStat provides Rand, adjusted Rand, Jaccard index to measure the quality of a cluster results.

Usage

clusterStat(trueGroup, group)

Arguments

trueGroup
The true cluster results.
group
The estimated cluster results, not neccessary calculating by PRclust.

Value

The return value is a "clusterStat" class, providing the following information.

Examples

Run this code
	a <- rep(1:3,3)
	a
	b <- rep(c(4:6),3)
	b
	clusterStat(a,b)

Run the code above in your browser using DataLab