Description Usage Arguments Value Examples
Calculates silhouette scores for clustered profiles and mean score for the whole clustering result.
1 | silhouette(table, dimension, clusters)
|
table |
object of class "table". |
dimension |
integer. Whether to use rows (1) or columns (2). Default is 1. |
clusters |
list of integer vectors. Each vector should define a cluster by specifing row or column indices of its memebrs. Clusters must not overalap. |
list with two elements. First element is a list with silhouette scores for each profile didvided into clutsers, second one is a weighted mean of those scores.
1 2 | clusters <- clusters2list(stats::cutree(hclust_table(ksarakil, 1), k = 4))
silhouette(ksarakil, 1, clusters)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.