max_ward_kl: Pick k based on the maximum KL index of Ward clusterings

View source: R/gen3DNet.R

max_ward_klR Documentation

Pick k based on the maximum KL index of Ward clusterings

Description

This function uses the NbClust package (Charrad 2014) to estimate the number of clusters present.

Usage

max_ward_kl(data, k_range)

Arguments

data

The data with an unknown number of clusters.

k_range

The range of possible k values

Details

First, the data is repeatedly clustered with 1 cluster, then 2, and so on, using the Ward hierarchical clustering algorithm (Ward 1963). Afterwards, each set of clusters is scored using the Krzanowski-Lai index (Krzanowski 1988). The number of clusters with the highest index is then chosen.

Value

The chosen value of k.


MollahLab/gen3DNet documentation built on Nov. 18, 2024, 5:08 a.m.