Description Usage Arguments Details Value Examples
To prevent overfitting of the distributional tails when
constructing a distmap
object, it is useful to trim
very extreme values from the input datasets. This function trims
values whose probability is less than 1/N (greater than 1-1/N),
where N is the number of data points + 1/2, under the assumption that
the data is gaussian.
1 |
x |
A vector of values to trim. |
upper |
Logical; trim values in the upper tail. Defaults to TRUE. |
lower |
Logical; trim values in the lower tail. Defaults to TRUE. |
The probability bounds are calculated using qnorm
. Instead
of using the sample mean and standard deviation, this function
uses the median and the MAD (median absolute deviation), which are
more robust against the effects of very extreme values.
A trimmed vector of values.
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.