Removing outliers

For questions and discussion related to reading in and working with data.
Marcus
Posts: 21
Joined: Wed May 19, 2010 5:12 am

Removing outliers

Unread post 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.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: Removing outliers

Unread post by TomDoan »

Use the SMPL option on SCATTER.

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