[R] Otpmial initial centroid in kmeans

Chua Siang Li siang.li.chua at acceval-intl.com
Thu Jul 3 05:35:20 CEST 2008

   Helo there.  I am using kmeans of base package to cluster my customers.  As
   the results of kmeans is dependent on the initial centroid, may I know:
   1) how can we specify the centroid in the R function? (I don't want random
   starting pt)
   2) how to determine the optimal (if not, a good) centroid to start with?  (I
   am not after the fixed seed solution as it only ensure that the cluster is
   the same at every run but not necessary a good cluster.)
   Many Thanks.

More information about the R-help mailing list