2 variables mgarch coding problem
Posted: Sun Aug 23, 2009 4:02 am
Dear
* Parameters for the regression function
*
frml hf = d=c+a*u(1){-1}*u(2){-1}+b*d{-1},$
(h11=vc(1)+vav(1)*h(1,1){1}+vbv(1)*uu(1,1){1}),$
(h22=vc(2)+vav(2)*h(2,2){1}+vbv(2)*uu(2,2){1}),$
||h11|(2*(1/1+exp(-d))-1)*sqrt(h11*h22),h22||
* this part ,i think ,do the setting sqrt(h12)=rho*sqrt(h11)*sqrt(h22) ; rho=2*(1/(1+exp(-d)))-1;d=c+u1(-1)*u2(-1)+b*d(-1)
* maybe there are something wrong in this part, but i dont how to modify it
compute vbv=%const(0.05),vav=%const(0.05),vc(1)=vc(2)=0.05,c=a=b=0.05
MAXIMIZE(parmset=meanparms+garchparms,METHOD=SIMPLEX,ITERS=5) LOGL 4 *
MAXIMIZE(parmset=meanparms+garchparms,METHOD=Bfgs,ITERS=100) LOGL 4 *
* Parameters for the regression function
*
frml hf = d=c+a*u(1){-1}*u(2){-1}+b*d{-1},$
(h11=vc(1)+vav(1)*h(1,1){1}+vbv(1)*uu(1,1){1}),$
(h22=vc(2)+vav(2)*h(2,2){1}+vbv(2)*uu(2,2){1}),$
||h11|(2*(1/1+exp(-d))-1)*sqrt(h11*h22),h22||
* this part ,i think ,do the setting sqrt(h12)=rho*sqrt(h11)*sqrt(h22) ; rho=2*(1/(1+exp(-d)))-1;d=c+u1(-1)*u2(-1)+b*d(-1)
* maybe there are something wrong in this part, but i dont how to modify it
compute vbv=%const(0.05),vav=%const(0.05),vc(1)=vc(2)=0.05,c=a=b=0.05
MAXIMIZE(parmset=meanparms+garchparms,METHOD=SIMPLEX,ITERS=5) LOGL 4 *
MAXIMIZE(parmset=meanparms+garchparms,METHOD=Bfgs,ITERS=100) LOGL 4 *