winsorize | R Documentation |
Winsorize a vector according to the cutoff parameters specified by min and max.
winsorize(x, min = qnorm(0.05), max = qnorm(0.95))
x |
A numeric vector to be winsorized. It should be scaled and centered to a normal distribution. |
min |
The left side cutoff |
max |
The right side cutoff |
A winsorized vector
out <- winsorize(x = rnorm(1000), min=qnorm(0.05), max = qnorm(0.95)) hist(out,breaks=20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.