Coefficent incorrect on the first forecasted value..help!

For questions regarding programming in the EViews programming language.

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

gmn734
Posts: 5
Joined: Thu Aug 08, 2013 2:00 am

Coefficent incorrect on the first forecasted value..help!

Postby gmn734 » Tue Sep 10, 2013 8:33 am

Hi,

I have run a simple regression (log(dep_variable) c log(indep_variable)) and forecast in Eviews but my first forecasted value is incorrect. My calculated coefficient is 1.8 but first forecasted value (for 2014) is 28 times the growth rate of the independant variable. 2015/16/17/18 all have a growth rate 1.8 times the independant variable. I have attached a picture of the regression output here and the forecast output here
regression forecast.png
regression forecast.png (138.84 KiB) Viewed 2507 times
I am writing it in a program file as i want to add a lot more models in. So im guessing it is something to do with my programming, here is the relevant excerpt. Can anyone help? Any help is appreciated, thanks
Last edited by gmn734 on Thu Sep 12, 2013 1:40 am, edited 3 times in total.

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

Re: Coefficent incorrect on the first forecasted value..help

Postby EViews Gareth » Tue Sep 10, 2013 9:10 am

Could you post bigger pictures? It is pretty difficult to make out the numbers in the images you provided.

gmn734
Posts: 5
Joined: Thu Aug 08, 2013 2:00 am

Re: Coefficent incorrect on the first forecasted value..help

Postby gmn734 » Tue Sep 10, 2013 9:22 am

Sorry they were a bit cr*p, clearer ones uploaded

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

Re: Coefficent incorrect on the first forecasted value..help

Postby EViews Gareth » Tue Sep 10, 2013 9:33 am

Calculation looks correct to me.

Your equation is log(dep) = -2.66666 + 1.7999*log(ind)

For 2014, ind is equal to 96.2. Thus log(dep) = -2.6666 + 1.7999*log(96.2) = 5.55. If log(dep) = 5.55, then dep = exp(5.55) = 257.97, which is what you get.

gmn734
Posts: 5
Joined: Thu Aug 08, 2013 2:00 am

Re: Coefficent incorrect on the first forecasted value..help

Postby gmn734 » Wed Sep 11, 2013 3:37 am

Thanks Gareth, very helpful

Another question if you don't mind...

The output using the C makes the forecast somewhat unrealistic for 2014, but the profile of the forecast in the years afterwards seems appropriate. Is it bad practice for me to manually substitute C for the previous periods dependant variable, so dep = dep(-1) + 1.79999*(ind)

If i change my model in Eviews to log(dep) c log(dep(-1)) log(ind) i still get a big movement in 2014, which again from a qualitative point of view is unrealistic.

Thanks


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests