[R] K-means result - variance between cluster

2010-07-02 Thread Ralph Modjesch
Hi, I like to present the results from the clustering method k-means in terms of variances: within and between Cluster. The k-means object gives only the within cluster sum of squares by cluster, so the between variance part is missing,for calculation the following table, which I try to get.

Re: [R] K-means result - variance between cluster

2010-07-02 Thread Christian Hennig
Dear Ralph, between and within clusters sum of squares (if you want variances, you need to divide them by the appropriate constant!) add up to the overall sum of squares, so you can get the beween clusters ss by computing the overall ss (one possibility to get this is to run kmeans with k=1)

Re: [R] K-means result - variance between cluster

2010-07-02 Thread Gabor Grothendieck
On Fri, Jul 2, 2010 at 4:37 AM, Ralph Modjesch ralph.modje...@pfeiffer-koberstein-immobilien.de wrote: Hi, I like to present the results from the clustering method k-means in terms of variances: within and between Cluster. The k-means object gives only the within cluster sum of squares by