Series Y = Y(-1) + k

For questions regarding programming in the EViews programming language.

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

fmgoto
Posts: 76
Joined: Thu Jan 15, 2009 5:01 am
Location: Brasilia, Brazil

Series Y = Y(-1) + k

Postby fmgoto » Wed Apr 14, 2010 10:39 am

Hey, this might have already been discussed, but I could not find it.

When I try to create the series below, I get just the next forecast (one-step, Jan 2010) and not the whole sample (say, until Mar 2010). I guess that it happens that Eviews cannot update dynamically the "y" series one step at a time.

Is there a way I can get the whole sample?

series y = exp( log(y(-1)) + dlog_hat )

Thanks in advance and apologies if this is redundant!

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

Re: Series Y = Y(-1) + k

Postby EViews Gareth » Wed Apr 14, 2010 10:50 am

Really isn't clear what you mean here. The following code will "forecast" the entire 2010 year, not just the first observation:

Code: Select all

create m 1990 2011 series dlog_hat=rnd smpl 1990 2009 series y=rnd 'forecast smpl 2010 2011 series y = exp(log(y(-1)) + dlog_hat)

fmgoto
Posts: 76
Joined: Thu Jan 15, 2009 5:01 am
Location: Brasilia, Brazil

Re: Series Y = Y(-1) + k

Postby fmgoto » Wed Apr 14, 2010 11:58 am

Got it. Thanks.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests