threshold | R Documentation |
This function applies a threshold to the output of the chips
function to find a CHIPS subpartition which achieves the specified threshold
and then completes the partition using the SALSO algorithm.
threshold(chipsOutput, threshold, ...)
chipsOutput |
Output from the |
threshold |
The minimum marginal probability for the subpartition. Values closer to 1.0 will yield a partition of fewer items and values closer to 0.0 will yield a partition of more items. |
... |
Other arguments passed to the |
A list containing the same values as the chips
function.
# For examples, use 'nCores = 1' per CRAN rules, but in practice omit this.
data(iris.clusterings)
draws <- iris.clusterings
all <- chips(draws, nRuns = 1, nCores = 1)
plot(all$n_items, all$probability)
threshold(all, threshold = 0.5, nCores = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.