If the number of clusters has not been set, estimates it by using Slope criterion in the range 2, 20.
checkNClust(dataDist, r = NULL, p = 1, maxClust = 20, clusteringFunction,
criterion = c("slope", "silhouette"))
A matrix with n subjects. Each subject has the size of NxN and represents the distances between the elements of the sample.
The number of clusters. NULL if it's unknown.
Slope adjust parameter.
The maximum number of clusters to be tried if estimating optimal number of clusters. The default value is 20.
The clustering function that Slope should use.
The criterion that will be used for estimating the number of clusters. The options are "slope" or "silhouette". If not defined, "slope" will be used.