delete an observation from series and shift

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator

hussam
Posts: 6
Joined: Mon May 15, 2017 3:40 am

delete an observation from series and shift

Postby hussam » Mon Jul 17, 2017 12:29 pm

Hi..
I want to delete an observation from series and shift up all data after the deleted observation ..
what is the command or program any do this deletion ?

EViews Matt
EViews Developer
Posts: 154
Joined: Thu Apr 25, 2013 7:48 pm

Re: delete an observation from series and shift

Postby EViews Matt » Mon Jul 17, 2017 1:33 pm

Hello,

Let me try to clarify what you're after. Do you want to remove an observation (which will affect all series on that workfile page) or just move data within a series (leaving other series on the page unmodified)?

hussam
Posts: 6
Joined: Mon May 15, 2017 3:40 am

Re: delete an observation from series and shift

Postby hussam » Mon Jul 17, 2017 3:21 pm

thnx for reply,
yes the second choice, but the modify on selected series and don't affect on ID date only remove the observation and replace it with next obs.

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

Re: delete an observation from series and shift

Postby EViews Gareth » Mon Jul 17, 2017 3:33 pm

X=X(-1)
Follow us on Twitter @IHSEViews

hussam
Posts: 6
Joined: Mon May 15, 2017 3:40 am

Re: delete an observation from series and shift

Postby hussam » Mon Jul 17, 2017 3:56 pm

i used the command : X=X(-1) and removed the last obs and added NA on first .so, i used the X=X(+1) and getting a result which i required.
thnx.... 8)


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 4 guests