prediction.strength(xdata, Gmin=2, Gmax=10, method="kmeans", M=50,
cutoff=0.8,...)GMin>1. Therefore GMin<2< code=""> is
useless.2<>"kmeans", "pam" or "clara",
specifying the clustering method to be applied.cutoff.M with relative
frequencies of correct predictions (clusterwise minimum). Every list
entry refers to a certain number of clusters.predcorr for all numbers of
clusters.knn1). A pair of points A in
the same A-cluster is defined to be correctly predicted if both points
are classified into the same cluster on B. The same is done with the
points of B relative to the clustering on A. The prediction strength
for each of the clusterings is the minimum (taken over all clusters)
relative frequency of correctly predicted pairs of points of that
cluster. The final mean prediction strength statistic is the mean over
all 2M clusterings.kmeans, pam,
claraset.seed(98765)
iriss <- iris[sample(150,20),-5]
prediction.strength(iriss,2,3,M=3)
prediction.strength(iriss,2,3,M=3,method="pam")
# The examples are fast, but of course M should really be larger.Run the code above in your browser using DataLab