View source: R/unsupervised-validation.R
| tidy_gap_stat | R Documentation |
Compute gap statistic for determining optimal number of clusters
tidy_gap_stat(data, FUN_cluster = NULL, max_k = 10, B = 50, nstart = 25)
data |
A data frame or tibble |
FUN_cluster |
Clustering function (default: uses kmeans internally) |
max_k |
Maximum number of clusters (default: 10) |
B |
Number of bootstrap samples (default: 50) |
nstart |
If using kmeans, number of random starts (default: 25) |
A list of class "tidy_gap" containing gap statistics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.