Description Usage Arguments Value References Examples
View source: R/qualityIndices.R
The goodness of the classifications are assessed by validating the clusters generated for a range of k values. For this purpose, we use the Silhouette width as validity index. This index computes and compares the quality of the clustering outputs found by the different metrics, thus enabling to measure the goodness of the classification for both instances and metrics. More precisely, this measurement provides an assessment of how similar an instance is to other instances from the same cluster and dissimilar to the rest of clusters. The average on all the instances quantifies how the instances appropriately are clustered. Kaufman and Rousseeuw suggested the interpretation of the global Silhouette width score as the effectiveness of the clustering structure. The values are in the range [0,1], having the following meaning:
There is no substantial clustering structure: [-1, 0.25].
The clustering structure is weak and could be artificial: ]0.25, 0.50].
There is a reasonable clustering structure: ]0.50, 0.70].
A strong clustering structure has been found: ]0.70, 1].
1 2 | qualityRange(data, k.range = c(3, 5), cbi = "kmeans",
getImages = TRUE, seed = NULL)
|
data |
A |
k.range |
Concatenation of two positive integers.
The first value |
cbi |
Clusterboot interface name (default: "kmeans"):
"kmeans", "clara", "clara_pam", "hclust", "pamk", "pamk_pam", "pamk".
Any CBI appended with '_pam' makes use of |
getImages |
Boolean. If true, a plot is displayed. |
seed |
Positive integer. A seed for internal bootstrap. |
A list of SummarizedExperiment
containing the silhouette width measurements and
cluster sizes from k.range[1]
to k.range[2]
. The position on the list matches
with the k-value used in that dataframe. For instance, position 5
represents the dataframe with k = 5.
kaufman2009findingevaluomeR
1 2 3 4 | # Using example data from our package
data("ontMetrics")
# Without plotting
dataFrameList = qualityRange(ontMetrics, k.range=c(2,3), getImages = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.