View source: R/cluster_funcs.R
pam_k | R Documentation |
Optimizes PAM clustering over a range of cluter numbers 'k' using silhouette score.
pam_k(dist.mat, kmin = 2, kmax = 5)
dist.mat |
Distance matrix or distance structure like that generated by 'dist'. |
kmin |
Minimum number of clusters. Default of 2. |
kmax |
Maximum number of clusters. Default of 5. |
A list; 'opt.clust' with the optimal clustering; 'clustering.objs', a list of all clusterings generated; 'sil.scores' a list of silhouette scores for each clustering object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.