Hello,
I am wondering if it possible to use the forecast or step function in RATS to make one-step forecasts on a serie. The LSTAR model coefficients were estimated using this code :
com c3 = ip(155)
com gama = 1
frml g = (1+exp(-gama*(ip{1}-c3)))**-1
nonlin a0 a1 a2 b1 b2
com a0=0, a1=0, a2=0, b1=0, b2=0
frml set ip = a0+g*(a1*ip(t-1)+a2*IP(t-2))+(1-g)*(b1*ip(t-1)+b2*IP(t-2))
nlls(print,frml=set) ip nbeg nend80 r_lstar
Now, my intuition would be to use:
forecast (model=set, result=forecast_lstar) * 1 nend80+1
This, however does not work. Anyone has an idea?
I appreciate all insights! Thanks in advance
