Page 1 of 1

forecasting/equation estimation question

Posted: Mon Jun 14, 2021 10:28 am
by BT454
Hi all!
I'm trying to specify an equation, and create a forecast for variable x on a daily (d7) basis. However, I would like to use the previous day's value for x as part of the estimation/forecast, i.e. the x = B1*x(-1) + B2*some other variable, so that when forecasting the next value, of x it uses the last forecasted value of x as part of the calculation. Is there a way to do this without crashing the equation estimation due to missing variables or without looping through the forecast for each day of forecast period?
Thanks!
Bob

Re: forecasting/equation estimation question

Posted: Mon Jun 14, 2021 10:44 am
by EViews Gareth
Aren't you just describing dynamic forecasting?

Re: forecasting/equation estimation question

Posted: Mon Jun 14, 2021 11:00 am
by BT454
I absolutely am. I can't seem to find how to code it up. Could you steer me toward the code? I already have my model option set to dynamic (d=d), but can't seem to figure out how to get the equation to estimate with dynamic forecasting variable.
Thanks!
Bob

Re: forecasting/equation estimation question

Posted: Mon Jun 14, 2021 11:35 am
by EViews Gareth
eh?

When you estimate an equation you don't need to tell the equation whether to do a dynamic forecast or not, since you're not forecasting, you're estimating.

When you forecast from an equation, you can either use eq.forecast (which does a dynamic forecast) or eq.fit (which does not).

Re: forecasting/equation estimation question

Posted: Mon Jun 14, 2021 12:12 pm
by BT454
Perfect. Thank you!