[R] error in kmeans

2005-04-01 Thread Asha Jayanthi
I am trying to generate kmean of 10 clusters for a 165 x 165 matrix. i do not see any errors known to me. But I get this error on running the script Error: empty cluster: try a better set of initial centers the commands are M -matrix(scan(R_mutual,n = 165 * 165),165,165,byrow = T) cl -

Re: [R] error in kmeans

2005-04-01 Thread Ingmar Visser
Hi Asha, kmeans is a non-deterministic routine. The help page says the following about the centers argument: centers: Either the number of clusters or a set of initial cluster centers. If the first, a random set of rows in 'x' are chosen as the initial centers. Hence,

Re: [R] error in kmeans

2005-04-01 Thread Uwe Ligges
Asha Jayanthi wrote: I am trying to generate kmean of 10 clusters for a 165 x 165 matrix. i do not see any errors known to me. But I get this error on running the script Error: empty cluster: try a better set of initial centers the commands are M -matrix(scan(R_mutual,n = 165 *

Re: [R] error in kmeans

2005-04-01 Thread Prof Brian Ripley
On Fri, 1 Apr 2005, Asha Jayanthi wrote: I am trying to generate kmean of 10 clusters for a 165 x 165 matrix. i do not see any errors known to me. But I get this error on running the script Error: empty cluster: try a better set of initial centers the commands are M -matrix(scan(R_mutual,n = 165

Re: [R] error in kmeans

2005-04-01 Thread Gavin Simpson
Asha Jayanthi wrote: I am trying to generate kmean of 10 clusters for a 165 x 165 matrix. i do not see any errors known to me. But I get this error on running the script Error: empty cluster: try a better set of initial centers the commands are M -matrix(scan(R_mutual,n = 165 *