Compute within sum of squares from PAM cluster analysis in R -


i working on cluster analysis pam in r. computed gower distance data vegdist() , computing cluster variable pam() works well. need measure determine right k. method know visually compare within sum of squares different ks. how can fetch wss series of pam iterations compare sums in plot, analogously example kmeans? http://rstudio-pubs-static.s3.amazonaws.com/137758_a80b40255fdd440ab76b41a646a6c482.html#loops

pam not optimize wss. wss k-means objective.

instead, use pam objective (maybe called td in literature?)

see ?[pam.object][1] objective field:

objective

the objective function after first , second step of pam algorithm.

beware similar wss, objective supposed decrease increasing k. can't choose minimum, should knee in plot.

because pam randomized, may want run each k multiple times, , keep best result only.


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -