[R] Otpmial initial centroid in kmeans

From: Chua Siang Li <siang.li.chua_at_acceval-intl.com>
Date: Thu, 03 Jul 2008 11:35:20 +0800

   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. siangli
    R-help_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
Received on Thu 03 Jul 2008 - 03:37:52 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 03 Jul 2008 - 09:31:57 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive