[R] finding a stable cluster for kmeans
"Julia Kröpfl"
jkroepfl at gmx.net
Tue Sep 25 11:00:33 CEST 2007
Hallo!
I applied kmeans to my data:
kcluster= kmeans((mydata, 4, iter.max=10)
table(code, kcluster$cluster)
If I run this code again, I get a different result as with the first trial (I understand that this is correct, since kmeans starts randomly with assigning the clusters and therefore the outcomes can be different)
But is there a way to stabilize the cluster (meaning finding the one cluster that appears the most often in 10 trials)?
Thank you for any ideas,
Julia
--
More information about the R-help
mailing list