Omit a Outlier

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Jason, EViews Steve, EViews Moderator

Leslie Hsu
Posts: 2
Joined: Wed Jun 03, 2009 9:00 pm

Omit a Outlier

Postby Leslie Hsu » Wed Jun 03, 2009 10:32 pm

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.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Omit a Outlier

Postby startz » Thu Jun 04, 2009 5:11 am

Leslie Hsu wrote: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.

Leslie Hsu
Posts: 2
Joined: Wed Jun 03, 2009 9:00 pm

Re: Omit a Outlier

Postby Leslie Hsu » Sat Jun 06, 2009 12:47 am

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.

startz
Non-normality and collinearity are NOT problems!
Posts: 3775
Joined: Wed Sep 17, 2008 2:25 pm

Re: Omit a Outlier

Postby startz » Sat Jun 06, 2009 6:38 am

Leslie Hsu wrote: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


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 33 guests