Re: [R] Help with K-means Clustering

2007-11-15 Thread Roberto Perdisci
Hi, if you use the function kmean in the package stats, for example clust <- kmeans(data, k, iter.max = 10) where k is the number of desired cluster, kmeans will choose the first k centers randomly. Because of this random initialization, after iter.max iteration the solution may converge to diff

[R] Help with K-means Clustering

2007-11-15 Thread Alejandro Rodríguez
Hello, I'm new using R. I'm trying to develop a K-means Clustering with R for some data I have, however each time I use that instruction with the same data my cluster means, clustering vector and within cluster sum of square change and I don't understand why because I use the same parameters and