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