Delete several observations

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

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

andgun
Posts: 4
Joined: Tue Feb 11, 2014 2:19 am

Delete several observations

Postby andgun » Tue Feb 11, 2014 2:24 am

Hi
Is it possible to delete several observations at once?

I use Proc -> Contract Current page:
Example:
2000 2011 if i_11103_naicscode_ser <>1187 and between 1260

And can I some how type in the number 50, 150, 550, 1050, 1200, 2550 in ordrer to delete them??
Last edited by andgun on Tue Feb 11, 2014 3:22 am, edited 1 time in total.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Delete several observations

Postby EViews Gareth » Tue Feb 11, 2014 2:55 am

@inlist

andgun
Posts: 4
Joined: Tue Feb 11, 2014 2:19 am

Re: Delete several observations

Postby andgun » Tue Feb 11, 2014 3:14 am

Like this?
2000 2011 if i_11103_naicscode_ser <>inlist(1187,1186, 1260)

What about between:
2000 2011 if i_11103_naicscode_ser <>between(1050;1150)

Could you please correct?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Delete several observations

Postby EViews Gareth » Tue Feb 11, 2014 8:56 am

Code: Select all

2000 2011 if @inlist(i_11103_naicscode_ser, "1187 1186 1260")=0

andgun
Posts: 4
Joined: Tue Feb 11, 2014 2:19 am

Re: Delete several observations

Postby andgun » Thu Feb 13, 2014 2:54 am

I get :
Error in Sample: @INLIST is not a Genr or series Expression function.

What is the problem?

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Delete several observations

Postby EViews Gareth » Thu Feb 13, 2014 7:26 am

Which version of EViews?

andgun
Posts: 4
Joined: Tue Feb 11, 2014 2:19 am

Re: Delete several observations

Postby andgun » Fri Mar 07, 2014 5:57 am

I have Version 7.

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Delete several observations

Postby EViews Gareth » Fri Mar 07, 2014 9:39 am

You'll have to write out the full expression then.

Code: Select all

2000 2011 if if i_11103_naicscode_ser <> 1187 or if i_11103_naicscode_ser <> 1186
etc...


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests