x <- rhuber(1e5,5,2,3)hist(x,100, freq =FALSE)curve(dhuber(x,5,2,3),-20,20, col ="red", add =TRUE, n =5000)hist(phuber(x,5,2,3))plot(ecdf(x))curve(phuber(x,5,2,3),-20,20, col ="red", lwd =2, add =TRUE)
References
Huber, P.J. (1964). Robust Estimation of a Location Parameter. Annals of Statistics, 53(1), 73-101.
Huber, P.J. (1981). Robust Statistics. Wiley.
Schumann, D. (2009). Robust Variable Selection. ProQuest.