winsorize {PCRA} | R Documentation |
This function Winsorizes a fraction gamma of a numeric data set.
winsorize(x, fraction = 0.1)
x |
A numeric data set |
fraction |
A fraction greater than 0 and less than 0.5 |
The Winsorized data is obtained by by setting the gamma smallest data values equal to the next smallest value, and setting the gamma largest data values equal to the next largest data value.
The Winsorized numeric data
x <- rt(10,8)
winsorize(x,0.2)