Calinski-Harabasz's pseudo-F (Calinski and Harabasz, 1974) and Average silhoutte width (Rousseeuw, 1987) calculation.
cluster_stats(d, clustering)
Distance object (as generated by dist()
) or a distance matrix
between cases.
Integer vector of length of the number of cases, which indicates a clustering. The clusters have to be numbered from 1 to the number of clusters.
Calinski-Harabasz's pseudo-F.
Average silhouette width.
Cali<U+0144>ski, T. and Harabasz, J (1974). "A dendrite method for cluster analysis". en. In: Communications in Statistics 3.1, pp. 1<U+2013>27. 10.1080/03610927408827101.
Rousseeuw, P. J. (1987). "Silhouettes: A graphical aid to the interpretation and validation of cluster analysis". In: Journal of Computational and Applied Mathematics 20, pp. 53<U+2013>65. ISSN: 03770427. 10.1016/0377-0427(87)90125-7.