I am trying to estimate a MGARCH(1,1) model but the variance-covariance matrix is coming up as non invertible. How can I correct this?
lin(noprint) baa / resids1
# constant
com AO = %beta(1)
com a11 = %seesq
lin(noprint) tbill3 / resids2
# constant
com BO = %beta(1)
com b11 = %seesq
com c11 = (a11*b11)**2
set R1 = resids1
set R2 = resids2
vcv(noprint,mat=cov)
# R1 R2
set U11 = cov(1,1)
set U22 = cov(2,2)
set U12 = cov(1,2)
nonlin AO BO a11 a12 a21 b11 b12 b21 c11 c12 c21
frml H11 = a11 + a12*U11{1} + a21*R1{1}
frml H22 = b11 + b12*U22{1} + b21*R2{1}
frml H12 = c11 + c12*U12{1} + c21*(R1{1}*R2{1})
frml res1 = baa-Ao
frml res2 = tbill3-Bo
com a12 = 0.05 , a21=0.7 , b12=0.05 , b21=0.7 , c12=0.05 , c21 = 0.7
dec symm covm
dec vec Res
frml LogL = (u11(t)=h11(t)),(u22(t)=h22(t)),(u12(t)=h12(t)),(R1(t)=res1(t)),(R2(t)=res2(t)),$
(covm=||u11(t)|u12(t),u22(t)||),$
(Res=||R1(t),R2(t)||),$
-.5*Log(%det(covm))-.5*%qform(inv(covm),Res)
max(method=simplex,iter=100,noprint) LogL 1970:12 2008:12
## MAT14. Non-invertible Matrix. Using Generalized Inverse for SYMMETRIC.
