by sekar2010 » Tue Jun 15, 2010 6:04 am
Dear Tom,
Thank you for fixing the code. I have my variance equation now. But I have another question. As I need to compute the covariance matrix and the running correlation from the VAR-EGARCH, I have tried to follow garchmv.prg but failed to get a lot of error messages. I am so sorry, I am a novice in RATS. This is my first time using it.
I believe that the code I should modify is
* Compute the covariance matrix of the standardized residuals from
* the diagonal GARCH
*
set z1 = rd(t)(1)/sqrt(hd(t)(1,1))
set z2 = rd(t)(2)/sqrt(hd(t)(2,2))
set z3 = rd(t)(3)/sqrt(hd(t)(3,3))
vcv(matrix=cc)
# z1 z2 z3
*
* Compute the correlations from the multivariate GARCH
*
set rho12 = hh(t)(1,2)/sqrt(hh(t)(1,1)*hh(t)(2,2))
set rho13 = hh(t)(1,3)/sqrt(hh(t)(1,1)*hh(t)(3,3))
set rho23 = hh(t)(2,3)/sqrt(hh(t)(2,2)*hh(t)(3,3))
graph(header="Correlation of JPN with FRA",vgrid=||cc(1,2)||)
# rho12
graph(header="Correlation of JPN with SUI",vgrid=||cc(1,3)||)
# rho13
graph(header="Correlation of FRA with SUI",vgrid=||cc(2,3)||)
# rho23
*
Yet, I don't understand how to get the rd and hh, and the cc (this is of course not in the previous code because I didn't use CC model for the MVGARCH). The example for all MVGARCH in garchmv.prg are straightforward,
garch(p=1,q=1,iters=200,hmatrices=hh) / xjpn xfra xsui
garch(p=1,q=1,mv=bekk,method=bfgs,iters=200,pmethod=simplex,piters=10) / xjpn xfra xsui
garch(p=1,q=1,mv=diag,hmatrices=hd,rvectors=rd) / xjpn xfra xsui
garch(p=1,q=1,mv=cc) / xjpn xfra xsui
garch(p=1,q=1,mv=dcc,method=bfgs) / xjpn xfra xsui
but with VAR-EGARCH, I am a bit confused. I am still trying to understand the whole line of vegarch.prg you posted. Can you explain to me a bit about this? So sorry for the trouble. Thank you very much!