Description Usage Arguments Value Examples
Its purposes is to eliminate outliers in a following way. Values lower or higher than a certain percentile will be replaced by the percentile. The function is taken from package DescTools.
1 | winsorization(x, perc_d, perc_u)
|
x |
a input vector |
perc_d |
lower percentile, which will be used for winsoriation |
perc_u |
lower percentile, which will be used for winsoriation |
Winsorized vector x
1 2 | example_vector=c(-1000,1,2,3,4,5,6,7,8,9,1000)
winsorization(example_vector,0.05,0.95)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.