k number in geostas
Issue #214
resolved
Which could be a good parameter to choose the k number in geostas function? In other words, How can I choose k? Thanks
Luis
Comments (4)
-
-
- changed component to Q&A
- changed version to v2.2 [devel]
-
- changed status to resolved
-
- changed version to v2.2
- Log in to comment
Hi Luis, I don't think there is a trivial answer to this question, so I would recommend you to consult other sources for choosing the correct number of clusters. See e.g. http://www.statmethods.net/advstats/cluster.html, but also the original geostas paper for more information.
On the more technical side of it, you can follow the recipe from the above link to plot the within groups sum of squares to get a feeling on which could be a good
k
:Note that bio3d implementation of geostas uses
kmeans
clustering by default, but you can change to hierarchical clustering by using argumentclustalg="hclust"
. Also note (as described in the code above) you can cluster the AMSM yourself bykmeans(1-gs$amsm)
orhclust(1-gs$amsm)
.Hope this helps. Lars