Displaying 1 result from an estimated 1 matches for "k15".
Did you mean:
15
2010 Aug 18
1
Plotting K-means clustering results on an MDS
...d MDS on my distance matrix (note: I performed k-means on
the MDS coordinates because applying a euclidean distance measure to my raw
data would have been inappropriate)
canto.MDS<-cmdscale(canto)
I then figured out what would be my optimum k-value by plotting the within
sums of squares for K1-K15
> wss <- (nrow(canto.MDS)-1)*sum(apply(canto.MDS,2,var))
> wss[2] <- sum(kmeans(canto.MDS,centers=2)$withinss)
> wss[3] <- sum(kmeans(canto.MDS,centers=3)$withinss)
> wss[4] <- sum(kmeans(canto.MDS,centers=4)$withinss)
> wss[5] <- sum(kmeans(canto.MDS,centers=5)$w...