dynamic backcasting of time series

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

Krzysztof
Posts: 15
Joined: Mon Jan 11, 2010 3:53 am

dynamic backcasting of time series

Postby Krzysztof » Mon Mar 21, 2011 4:08 pm

Hi,
I have one question related to backcasting. I'd like to backcast values for time series having the most recent value in line with the growth rates of another time series.
However, if I try to fill up my time series using the below line of code it does not work dynamically (only statically for one observation(t) ).
any ideas appreciated
best, Krzysztof

Code: Select all

aSer = @nan(aSer, aSer(+1)*aSer2/aSer2(+1))
aSer - series to be backcasted
aSer2 - series containing the growth rates for backcasting

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

Re: dynamic backcasting of time series

Postby EViews Gareth » Mon Mar 21, 2011 4:12 pm

Unfortunately the only way to do it is with a for loop that loops through the observations one by one, filling them in.

Edit: Alternatively, you could create a trend series (series t=@trend), then sort the workfile by that trend, but in descending order (proc->Sort current page). That will reverse the order of the workfile. Once you've done that, you no longer need to backcast - now you're forecasting, which EViews will allow.

leah
Posts: 35
Joined: Tue Jul 16, 2013 2:29 pm

Re: dynamic backcasting of time series

Postby leah » Tue Oct 07, 2014 12:19 pm

Is this still the case or has something been developed that doesn't require a for loop?

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

Re: dynamic backcasting of time series

Postby EViews Gareth » Tue Oct 07, 2014 12:26 pm

genr(r) will create a series in reverse.

leah
Posts: 35
Joined: Tue Jul 16, 2013 2:29 pm

Re: dynamic backcasting of time series

Postby leah » Tue Oct 07, 2014 12:40 pm

So what syntax would you use (e.g. if you want to reverse series x)? Or a page number in the command ref? I'm having trouble finding documentation for the genr options.

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

Re: dynamic backcasting of time series

Postby EViews Gareth » Tue Oct 07, 2014 1:07 pm

Code: Select all

genr(r) x=0.2*x(1)

leah
Posts: 35
Joined: Tue Jul 16, 2013 2:29 pm

Re: dynamic backcasting of time series

Postby leah » Tue Oct 07, 2014 1:12 pm

At least for me, that results in NAs. x.adjust \ seems to work though.

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

Re: dynamic backcasting of time series

Postby EViews Gareth » Tue Oct 07, 2014 1:15 pm

You have to make sure you have the sample right.


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 2 guests