View source: R/get_thresholds.R
| get_thresholds | R Documentation |
Either fit 3 components Gaussian mixture to determine cutpoints for surrogate variable of uses the most extremes quantiles
get_thresholds(x, method = c("quantiles", "GaussianMixture"), p = 0.1,
...)
x |
a feature occurence count vector to be split into 3 components |
method |
a character string indicating which splitting method is
used : either |
p |
the probability of extemes used in the quantile splitting method
(ignored if |
... |
further agruments not used here |
a list with the following components:
thesholdsa list containing the lower threshold lowthres
marking the difference between the two classes 0 (the fewest occurences) and 0.5;
and the upper threshold upthres marking the difference between the
two classes 0.5 and 1 (the most occurences)
surrogate a vector containing the clustering for each observation (as
an ordered factor with the 3 following levels ordered by the number of occurences:
0 < 0.5 < 1.)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.