Page 1 of 1

Omit a Outlier

Posted: Wed Jun 03, 2009 10:32 pm
by Leslie Hsu
Hi

In a series or group, if I want to omit a outlier or a specific observation of the series, what should I write in the command line?
Please kindly advise. Thank you.

Re: Omit a Outlier

Posted: Thu Jun 04, 2009 5:11 am
by startz
Hi

In a series or group, if I want to omit a outlier or a specific observation of the series, what should I write in the command line?
Please kindly advise. Thank you.
use the smpl command

Code: Select all

smpl @all
includes the entire sample

Code: Select all

smpl 1 9 11 100
include the first hundred data points, excepting the 10th.

Re: Omit a Outlier

Posted: Sat Jun 06, 2009 12:47 am
by Leslie Hsu
Thank you, startz~

If there are several thousands of obs. in the series and roughly 10-30 outliers distribute everywhere, is there any method to omit these outliers. Otherwise, is it possible to delete these outlier? For example, we may write "if smpl=10 then delet" in SAS. Thank you.

Re: Omit a Outlier

Posted: Sat Jun 06, 2009 6:38 am
by startz
Thank you, startz~

If there are several thousands of obs. in the series and roughly 10-30 outliers distribute everywhere, is there any method to omit these outliers. Otherwise, is it possible to delete these outlier? For example, we may write "if smpl=10 then delet" in SAS. Thank you.
Look up smpl if, as in

Code: Select all

smpl if some-logical-condition