Page 1 of 2

VAR GARCH-M Model

Posted: Wed Mar 11, 2015 12:27 am
by HieuNguyen051093
Hi Tom
I'm using A Multivariate GARCH-M VAR model, but now I don't know how to write code for it. May you help me, please!
I'm looking foward to hearing from you

Re: VAR GARCH-M Model

Posted: Wed Mar 11, 2015 12:17 pm
by TomDoan
There are several different ways to add "M" terms to a GARCH model (depending upon whether you want just the variances, just the standard deviations, covariances as well). There are several examples of multivariate "M" setups in the GARCHMV.RPF example file. None is specifically a "VAR" GARCH, but adding the lagged dependent variables is fairly easy once you figure out how you want the M effects to work.

Re: VAR GARCH-M Model

Posted: Thu Mar 12, 2015 2:09 pm
by HieuNguyen051093
Dear Tom
Thank you for some examples you gave me, but I can't distinguish it. So, may you help me write a code in the following instance: My paper presents a model that combines a reduced form vector autoregression for export growth (lnex), foreign income growth (lnfi), and RER (real exchange rate) growth (lnreer), with a multivariate GARCH-M model following the dynamic conditional correlation (DCC) specification of Engle (2002).
I hope hearing from you soon!

Re: VAR GARCH-M Model

Posted: Thu Mar 12, 2015 9:57 pm
by TomDoan
Again, the "VAR" part is easy. There are many ways to do the "M" effect in a multivariate model. How are you proposing to handle that?

Re: VAR GARCH-M Model

Posted: Sat Mar 14, 2015 10:12 am
by HieuNguyen051093
It's not what I mean. I think I don't understand you and you too, may be! Thanks for your response

Re: VAR GARCH-M Model

Posted: Sat Mar 14, 2015 10:38 am
by TomDoan
Write down and attach a formula (as a JPG or GIF) so I can see what model you're trying to estimate.

Re: VAR GARCH-M Model

Posted: Sat Mar 14, 2015 11:48 am
by HieuNguyen051093
Here's the model that I try to estimate, please can you help me.

Re: VAR GARCH-M Model

Posted: Sat Mar 14, 2015 12:48 pm
by TomDoan
Are you sure about that DELTA matrix (the coefficient matrix on the "M" term)? Shouldn't that be diagonal?

Re: VAR GARCH-M Model

Posted: Wed Jun 17, 2015 9:08 pm
by cczzwhy
Dear Tom

I got a question about the bivariate VAR GARCH -M model ,how can I extract the coefficient parameters( like Λ(L) in Elder(2010)) from the VAR ,

I use the code as follows :

Code: Select all

SYSTEM(MODEL=VAR1)
VARIABLES VIX EF
LAGS 1 TO 4
DET Constant
END(SYSTEM)
ESTIMATE
garch(model=var1,mv=bekk,hmatrices=h, MVHSERIES=bekkHmatrix, rvectors=r,pmethod=simplex,piters=5,method=bfgs,iters=400) / VIX EF

Re: VAR GARCH-M Model

Posted: Thu Jun 18, 2015 6:33 am
by TomDoan
That model has no "M" terms. As in the above question, what "M" effects are you trying to include?

At any rate, the coefficients of the mean model go into the MODEL that you define (here VAR1). So you can use %MODELGETCOEFFS(VAR1) to get the matrix of coefficients and hack the information out of it. You can also just look at the GARCH output and pick the coefficient numbers that are of interest out of %BETA (and %STDERRS).

Re: VAR GARCH-M Model

Posted: Thu Jun 18, 2015 10:53 pm
by cczzwhy
Sorry ,I think I didn`t convey it clearly,actually I want to ask about how can I get the vector phi in the model as attached

Re: VAR GARCH-M Model

Posted: Fri Jun 19, 2015 10:55 am
by TomDoan
This adjusts your mean model to include the two variances. The PHI matrix can be pulled out of the coefficient matrix from VAR1. (The 10,11 depends upon the number of lags---you have eight lag coefficients + constant in each equation before the two H terms).

Code: Select all

dec symm[series] bekkhmatrix(2,2)
*
SYSTEM(MODEL=VAR1)
VARIABLES VIX EF
LAGS 1 TO 4
DET Constant bekkhmatrix(1,1) bekkhmatrix(2,2)
END(SYSTEM)
garch(model=var1,mv=bekk,hmatrices=h, MVHSERIES=bekkHmatrix, rvectors=r,pmethod=simplex,piters=5,method=bfgs,iters=400) / VIX EF
*
compute meancoeffs=%modelgetcoeffs(var1)
compute phi=%xsubmat(meancoeffs,10,11,1,2)

Re: VAR GARCH-M Model

Posted: Sat Jun 20, 2015 2:56 am
by cczzwhy
Thanks for your help ,I can get the PHI right now!

May I ask another question about the results in paper[Exchange rate uncertainty and international portfolio flows_ A multivariate GARCH-in-mean approach(2015)*],the Phi got lags,what should I do to generate it?

Re: VAR GARCH-M Model

Posted: Sat Jun 20, 2015 8:41 am
by TomDoan
BEKKHMatrix(1,1) and BEKKMATRIX(2,2) are series, so you can use lag notation {lag} with them. I assume they started with a full VAR with quite a few lags and cut it down to what they're showing. Note that they have different mean equations between the two equations, so that will be more similar to the example in GARCHMV.RPF with separate equations.

Re: VAR GARCH-M Model

Posted: Sun Jun 21, 2015 11:22 pm
by cczzwhy
Thank you very much !I can generate the results now .