search for: max_pctle_cut

Displaying 1 result from an estimated 1 matches for "max_pctle_cut".

2011 Nov 22
1
Capping outliers
...and 150 variables), loop I am using in the below mentioned code for detecting outliers and capping to upper /lower percentile value is taking much time for the execution. Is there anything wrong with code, can anyone suggest improvement in the script to enhance performance! min_pctle_cut <- 0.01 max_pctle_cut <- 0.99 library(outliers) n <- 100 x1 <- runif(n) x2 <- runif(n) x3 <- x1 + x2 + runif(n)/10 x4 <- x1 + x2 + x3 + runif(n)/10 x5 <- factor(sample(c('a','b','c'),n,replace=TRUE)) x6 <- factor(1*(x5=='a' | x5=='c')) data1 <- cb...