Page 1 of 1

Removing outliers

Posted: Thu Feb 15, 2018 10:02 am
by Marcus
Suppose I have two series x1 and x2 that I want to plot towards each other.
X1 has some outliers for instance three values above 10 000.
I want to get rid of those and the matching observations in x2.
What would be the easiest way to do that? I've tried some alternative but they're clumpsy and don't give me exactly what I want.

Re: Removing outliers

Posted: Thu Feb 15, 2018 12:23 pm
by TomDoan
Use the SMPL option on SCATTER.

scatter(smpl=(x1<10000))
# x1 x2