Recursive forecasting in procedure
Posted: Fri Sep 04, 2009 8:38 am
Hallo,
I think I came across a similar problem once...but I couldn't figure out anymore how it was solved back then. I want to produce recursive forecasts with a model in a procedure and I also want to re-estimate the involved equations in a recursive fashion. I.e. something like
Apparently, this type of code doesn't really use the recursively estimated equations for forecasting but always the original parameter values recorded for the equations of the model. So, what do I have to change to "update" the model during the time-loop?
I think I came across a similar problem once...but I couldn't figure out anymore how it was solved back then. I want to produce recursive forecasts with a model in a procedure and I also want to re-estimate the involved equations in a recursive fashion. I.e. something like
Code: Select all
PROCEDURE MODELFIT
*
option model *mod
option integer neqns
(...some more options...)
*
* Recursive estimation and forecasting
do time=sfroml,sto
do k=1,neqns
linreg(noprint,equation=%modeleqn(mod,k)) %modeldepvars(mod)(k) efrom time-1
end do k
forecast(print,model=mod,results=fcs,from=time,steps=fsteps)
end do time
END PROCEDURE