clusterStat: External Evaluation of Cluster Results

Description Usage Arguments Value Author(s) Examples

View source: R/RcppExports.R View source: R/RcppExports.R

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

1
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.

Rand

Rand Index

AdjustedRand

Adjusted Rand Index

Jaccard

Jaccard Index

Author(s)

Chong Wu

Examples

1
2
3
4
5
	a <- rep(1:3,3)
	a
	b <- rep(c(4:6),3)
	b
	clusterStat(a,b)

ChongWu-Biostat/prclust documentation built on May 6, 2019, 11:18 a.m.