I use the following "for" loop to detect and remove outliers from a data set. I import the column as a matrix (mBase) because this solved other problems and then run it through the loop. Does anyone have any recommendations to speed this up? Currently 2000 records take 3-4 seconds and I'm dealing with 60,000 records.
For( i = 1, i < 2000 + 1, i++,
If(
mBase > Quantile( 0.75, mBase ) + 3.95 * (Quantile( 0.75, mBase ) -
Quantile( 0.25, mBase )) | mBase < Quantile( 0.25, mBase ) - 3.95 * (
Quantile( 0.75, mBase ) - Quantile( 0.25, mBase )),
mBase = [.]
)
);
Thanks in advance for the reply(s).
Matt