Winsorizes the data
winsor(x, fraction = 0.01)
x
the data.
fraction
the top and bottom quantiles to cap.
Y <- rlnorm(10)%*%t(rlnorm(10)) Yw <- winsor(Y,1E-2)