Leading / Lagging a Series

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

w_nawfal
Posts: 69
Joined: Fri Jul 30, 2010 6:58 am
Location: Montreal, Canada
Contact:

Leading / Lagging a Series

Postby w_nawfal » Tue Feb 15, 2011 8:54 am

Question to the Gallery

Eviews is funny in the sense that if i would like to take the rate of change of a series (i.e. s) i can do the follwoing x/(x-1)

where here the x(-1) means the value for x @ n-1 time

however, if i would like to plot the series x and lag it by one peried i must graph x(+1)

why?

Wes

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

Re: Leading / Lagging a Series

Postby EViews Gareth » Tue Feb 15, 2011 8:57 am

EViews always uses X(-1) for lag. I don't know what you mean about needing to use X(+1) for graphs (which would actually graph the one period lead of X, not lag).

w_nawfal
Posts: 69
Joined: Fri Jul 30, 2010 6:58 am
Location: Montreal, Canada
Contact:

Re: Leading / Lagging a Series

Postby w_nawfal » Mon Feb 21, 2011 6:03 am

Hello Gareth

my confusion stemmed from the fact that when Eviews lags a series it in facts pushes the data forward by n values so that a historical value is matched with a current date.

i.e. if i want a series lagged 3 days i would use x(-3), and when i open this series along with the original I would observe that the new series has 3 more data points than the older one - of course this is done so that the data point of 3 days ago is now the data point for today.

all's well now :O) - I thank you for your reply.

Wes


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests