Q stat DCC GARCH

Discussions of ARCH, GARCH, and related models

Q stat DCC GARCH

Postby aymenbelgacem » Wed Feb 08, 2012 4:18 pm

Hi
I'm using an old version of Engle(2002) JBES for the DCC GARCH and I would like to calculate the MV Qstat
Is there any suggestion plz.
I don't use the GARCH instruction to estimate the model because I would like to introduce some other variables in GARCH and Q equations...
This is a part of the code
Thanks
Aymen
Attachments
dcc engle.PRG
(2.5 KiB) Downloaded 88 times
aymenbelgacem
 
Posts: 6
Joined: Tue Oct 18, 2011 5:27 am

Re: Q stat DCC GARCH

Postby TomDoan » Wed Feb 08, 2012 6:56 pm

Do you mean something other than the @MVQSTAT procedure?
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Q stat DCC GARCH

Postby aymenbelgacem » Wed Feb 08, 2012 9:50 pm

Yes I mean the @mvqstat but I don't know how to treat the dynamic correlation before using the procedure
Thanks Tom
aymenbelgacem
 
Posts: 6
Joined: Tue Oct 18, 2011 5:27 am

Re: Q stat DCC GARCH

Postby TomDoan » Thu Feb 09, 2012 10:10 am

The GARCHMV.RPF example includes multivariate standardization of the residuals prior to calling @MVQSTAT:

Code: Select all
garch(p=1,q=1,pmethod=simplex,piters=10,$
   hmatrices=hh,rvectors=rd)  / xjpn xfra xsui
set z1 = rd(t)(1)/sqrt(hh(t)(1,1))
set z2 = rd(t)(2)/sqrt(hh(t)(2,2))
set z3 = rd(t)(3)/sqrt(hh(t)(3,3))
@bdindtests(number=40) z1
@bdindtests(number=40) z2
@bdindtests(number=40) z3
*
* Multivariate Q statistic. This requires transforming the residuals to
* eliminate the time-varying correlations.
*
dec vect[series] zu(%nvar)
do time=%regstart(),%regend()
   compute %pt(zu,time,%solve(%decomp(hh(time)),rd(time)))
end do time
@mvqstat(lags=40)
# zu
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Q stat DCC GARCH

Postby aymenbelgacem » Thu Feb 09, 2012 10:42 am

Thanks Tom
I know this example but I can't use the GARCH instruction and the Xregressors because I want to add the lagged variance of the market i in the market j and other variables, so I tried to paste the second part of GRACHMV example in which one calculates the standardized residuals. But the problem that I tried to make a link between it and my version of the DCC GARCH attached above, I didn't find what corresponds to "hh" and "rd" in my old version of the DCC.
Sorry Tom for this (naive) question
aymenbelgacem
 
Posts: 6
Joined: Tue Oct 18, 2011 5:27 am

Re: Q stat DCC GARCH

Postby TomDoan » Fri Feb 10, 2012 8:51 am

Your equivalent would be to use %XT for the HH and U arrays of series:

Code: Select all
dec vect[series] zu(n)
do time=%regstart(),%regend()
   compute %pt(zu,time,%solve(%decomp(%xt(hh,time)) ,%xt(u,time)))
end do time
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Q stat DCC GARCH

Postby aymenbelgacem » Fri Feb 10, 2012 9:55 am

I don't have HH. Do you mean h?
aymenbelgacem
 
Posts: 6
Joined: Tue Oct 18, 2011 5:27 am

Re: Q stat DCC GARCH

Postby moderator » Fri Feb 10, 2012 12:07 pm

It would be whatever name you are using for your variances and covariances in your particular code. Mr. Doan used HH in his example, but it looks like you used H in your code.

Regards,
Tom Maycock
moderator
Site Admin
 
Posts: 306
Joined: Thu Oct 19, 2006 4:33 pm


Return to ARCH and GARCH Models

Who is online

Users browsing this forum: Google [Bot] and 1 guest