if I have an equation estimated in a procedure based on time series that is local to this procedure, what information is available after returning the equation definition from the procedure? It seems as if I can access the equation and e.g. use it for forecasting although the underlying time series are of course no longer known to my program (see example below). Can anybody clearify what's going on in this example? (I just want to be sure the program does what I think it does.)
Code: Select all
set x 1 100 = %ran(2)
set z 1 100 = %ran(2)
set e 1 100 = %ran(2)
set y = 0.5 + 3*z + 5*x + e
procedure estimation aser bser eqn
type series aser bser
type equation eqn
*
local series zser
local integer ta te
*
inquire(regressorlist) ta te
# aser bser
*
set zser ta te = exp(aser)
linreg(define=eqn) bser ta te
# constant zser
*
end procedure
decl equation eqn
@estimation x y eqn
forecast(static,from=50,steps=5,print) 1
# eqn
print / zser