Thanks TomDoan, however I am not sure I understand how to add the lags of u in the frml.
The problem I have is that I need to estimate the model through the maximize command because my garch specification is non-standard (it includes two time dummies multiplied with u^2_t-1 and h_t-1). Let me show you what I have
- Code: Select all
open data C:\Program Files\Estima\WinRATS 7.2\at.txt
data(format=free,org=columns) 1 287 at
linreg at
# constant at{1}
frml(lastreg,vector=beta) meanf
nonlin(parmset=meanparms) beta
*
set uu = %seesq
set h = %seesq
set u = 0.0
*
nonlin(parmset=garchparms) c a b d e f
compute c=%seesq,a=.29,b=.52,d=0.30,e=-0.74,f=0.00001
set dummy = t>=232
frml varf = c+a*uu{1}+b*h{1}+d*uu{1}*dummy{1}+e*h{1}*dummy{1}+f*dummy
frml logl = (u=at-meanf),(uu(t)=u**2),(h(t)=varf(t)),%logdensity(h,u)
maximize(parmset=meanparms+garchparms,METHOD=BHHH,PMETHOD=BHHH) logl 6 *
As you can see the garch specification has two dummies (multiplied with uu and h) that capture any differential effect after a specific date. My question is how to change the mean equation to accommodate an ARMA structure.
Thanks for the help and the patience