When to Stop

whenToStop(merger, p)

Arguments

merger

the result from having run Dune on the dataset

p

A value between 0 and 1. We stop when the mean ARI has improved by p of the final total improvement. Default to 1 (i.e running the full merging).

Value

An integer giving the step where to stop.

Details

The Dune process improves the mean ARI. This return the first merging step after which the mean ARI has been improved by p of the total. Setting p = 1 just return the number of merges.

Examples

data("clusMat", package = "Dune") merger <- Dune(clusMat = clusMat) whenToStop(merger, p = .5)
#> [1] 2