winsorize(x, k = 1, na.rm = TRUE)
na.rm
, default is na.rm=TRUE
.x
Dixon, W. J., and Yuen, K. K. (1960) Simplified Estimation from Censored Normal Samples, The Annals of Mathematical Statistics, 31, 385--391.
Wilcox, R. R. (2012) Introduction to robust estimation and hypothesis testing. Academic Press, 30-32. Statistics Canada (2010) Survey Methods and Practices.
x <- rnorm(100)
winsorize(x)
# see this function in context.
Run the code above in your browser using DataLab