Learn R Programming

salso (version 0.3.53)

threshold: Threshold CHIPS Output

Description

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.

Usage

threshold(chipsOutput, threshold, ...)

Value

A list containing the same values as the chips function.

Arguments

chipsOutput

Output from the chips function.

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 chips function.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab