Problem with multivariate GARCH model
Posted: Fri May 02, 2014 3:53 am
hi Tom
Thank you for your explanation. I confirm that I have had a course in literature on multivariate GARCH model.
I have a porbleme convergence in code brooks. When I run the program, it shows me in the output window that the matrix is not invertible.
thank you
Thank you for your explanation. I confirm that I have had a course in literature on multivariate GARCH model.
I have a porbleme convergence in code brooks. When I run the program, it shows me in the output window that the matrix is not invertible.
Code: Select all
linreg DLBMGR10Y_RI / r1s
# constant
compute A0 = %beta(1)
compute VC11 = %seesq
linreg DLBMFR10Y_RI / r2s
# constant
compute B0 = %beta(1)
compute VC12 = %seesq
compute VC12 = (VC11*VC12)**0.5
VCV(noprint,matrix=COVM)
# r1s r2s
compute U11s = COVM(1,1) , U12s = COVM(1,2), U22s = COVM(2,2)
set r1 = r1s
set r2 = r2s
set U11 = U11s
set U12 = U12s
set U22 = U22s
nonlin A0 B0 VC11 VC12 V11 V12 V21 V22 CV11 CV12 CV21
frml H11 = vc11 + v11*u11{1} + v12*r1{1}**2
frml H22 = vc12 + v21*u22{1} + v22*r2{1}**2
frml H12 = cv12 + cv21*u12{1} + cv11*(r1{1}*r2{1})
frml resid1 = DLBMGR10Y_RI - A0
frml resid2 = DLBMFR10Y_RI - B0
compute cv11 = 0.05
compute cv21 = 0.07
**compute cv12 = 0.05
compute v11 = 0.7
compute v12 = 0.05
compute v21 = 0.7
compute v22 = 0.05
dec symm um
dec vect rv
frml toto = (U11(T)=H11(T)),(U12(T)=H12(T)),(U22(T)=H22(T)), $
(R1(T)= resid1(T)),(R2(T)= resid2(T)), $
(UM =||U11(T)|U12(T),U22(T)||),(RV =||R1(T),R2(T)||), $
-.5 * log(%det(UM))-.5 * %QFORM(INV(UM),RV)
nlpar (criterion=value,cvcrit=0.0001,subiters=50)
maximize(method=simplex,iters=15,noprint,trace) toto 1999:04:03 2014:02:21
max(method=BHHH, robust,recursive,iters=100) toto 1999:04:03 2014:02:21