gap_statistic: The gap statistic Work in progress

Description Usage Arguments Value

View source: R/evaluation.R

Description

Quantifies clustering quailty comparing it to siumulated clusters. See Section 4.1 of the thesis for further details.

Usage

1
gap_statistic(table, dimension, clusters, func, scheme, B = 500)

Arguments

table

object of class "table".

dimension

integer. Whether to use rows (1) or columns (2). Default is 1.

clusters

list of integer vectors. Each vector should define a cluster by specifing row or column indices of its memebrs. Clusters must not overalap.

func

character. Name of clustering function. Currently "kmeans" and "hclust" are supported.

scheme

character. Name of the null sampling scheme tables are genereated from. Can be either..

B

integer. Number of sampled tables.

Value

list with elements: gap - value of the statistic and s -sclaled standard deviation


aczepielik/CrossTabCluster documentation built on June 19, 2020, 7:53 p.m.