[R] mva - kmeans (repetitive requests)

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Dec 18 14:29:10 CET 2000

> Date: Mon, 18 Dec 2000 13:08:20 +0000
> From: Athula Herath <Athula.Herath at ogs.co.uk>
> Hi All,
> Should I get two different results if I were to repeat the kmeans
> clustering on the same data set?

[Using kmeans(iris[1:4],5,20)]

Yes.  It starts with a random sample from the dataset.

> In S-Plus (2000)  the repetitive executions gives us the same result.

S-PLUS (6.0) uses 

# if starting values not specified use hclust to get them

so the algorithm is different.

> Are these  results  generated by R consistent?

Consistent with what?

Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list