Page 1 of 1

Delete several observations

Posted: Tue Feb 11, 2014 2:24 am
by andgun
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??

Re: Delete several observations

Posted: Tue Feb 11, 2014 2:55 am
by EViews Gareth
@inlist

Re: Delete several observations

Posted: Tue Feb 11, 2014 3:14 am
by andgun
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?

Re: Delete several observations

Posted: Tue Feb 11, 2014 8:56 am
by EViews Gareth

Code: Select all

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

Re: Delete several observations

Posted: Thu Feb 13, 2014 2:54 am
by andgun
I get :
Error in Sample: @INLIST is not a Genr or series Expression function.

What is the problem?

Re: Delete several observations

Posted: Thu Feb 13, 2014 7:26 am
by EViews Gareth
Which version of EViews?

Re: Delete several observations

Posted: Fri Mar 07, 2014 5:57 am
by andgun
I have Version 7.

Re: Delete several observations

Posted: Fri Mar 07, 2014 9:39 am
by EViews Gareth
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...