Description Usage Arguments Author(s)
This function calculates the Calinski-Harabas index for all solutions contained in a bootFlexclust object. It does it for each Rand test paired comparison, so 100 bootstrap replicates of the Rand index will result in 200 Calinski-Harabase index values. This code borrows from the function index.G1 of Marek Walesiak and Andrzej Dudek's clusterSim package in terms of implementing the sum of squares components
1 2 |
xdat |
A numeric matrix of the data to be clustered. |
k_vals |
An integer vector giving the set of clustering solutions to be examined. |
clstr1 |
The cluster assignments from a bootFlexclust object for one side of the Rand index paired comparisons. |
clstr2 |
The cluster assignments from a bootFlexclust object for the other side of the Rand index paired comparisons |
cntrs1 |
The cluster centers from a bootFlexclust object for one side of the bootFlexclust Rand index paired comparisons. |
cntrs2 |
The cluster centers from a bootFlexclust object for the other side of the bootFlexclust Rand index paired comparisons. |
method |
The clustering method, one of "kmn" (K-Means), "kmd" (K-Medians), and "neuralgas" (neural gas). |
Dan Putler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.