Re: [R] clusterCrit package produces Nan

2014-01-29 Thread Pascal Oettli
Hello, Please also reply to the list. I am not really familiar with this calculation, but it is maybe due to the fact you defined 8 nodes for your SOM, but your original data are only classified within 3 nodes. > datissimi = som(test, grid=somgrid(xdim=2, ydim=4, topo='rectangular'), > rlen=500

Re: [R] clusterCrit package produces Nan

2014-01-29 Thread Pascal Oettli
Hello, Your example is difficult to reproduce. Please 1. use dput() to attach data 2. indicate the package(s) you used. There are at least 3 packages with a "som" function. It seems you used "RSNNS". And when I run your code, there is no "unit.classif" in "datissimi" > datissimi$unit.classif NU

[R] clusterCrit package produces Nan

2014-01-29 Thread Paola Tellaroli
I'm trying to compute the Silhouette value of a clustering partition done with SOM method using the function intCriteria of the clusterCrit package but it returns me a Nan value: somebody knows why? To simplify my case, here there is an example: < test [,1] [,2] [,3] [,4]