Hafner Herwartz 2006

Use this forum for posting example programs or short bits of sample code.

Hafner Herwartz 2006

Postby TomDoan » Tue May 15, 2012 10:35 am

The following is a replication file for the analysis in Hafner and Herwartz(2006), "Volatility impulse responses for multivariate GARCH models: An exchange rate illustration", Journal of International Money and Finance, vol 25, no 5, 719-740. The data set is a reproduction, so the results are similar but don't quite match.

This requires the MVGARCHtoVECH procedure (http://www.estima.com/forum/viewtopic.php?f=7&t=1433). The same relatively simple VIRF calculation can be applied to MV-GARCH models estimated with STANDARD (or DVECH) which is the default for GARCH, BEKK, VECH or DIAGONAL. It does not work for other types of MV-GARCH models, or models with asymmetry.

garchmodels.rpf
Program file
(4.99 KiB) Downloaded 268 times
xrates.xls
Data file (reproduction)
(719.83 KiB) Downloaded 265 times
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Hafner Herwartz 2006

Postby Bella » Sun Aug 26, 2012 8:39 am

Dear Tom,
Hello
I would like to know whether the generalized Impulse Response and volatility Impulse Response in enclosed paper can be obtained using the method you have posted?
Taking the VARMA-GARCH-in-M-Asymmetric BEKK as a example, how can i make changes for the related code you have posted to estimate generalized Impulse Response and volatility Impulse Response in a VARMA-GARCH-in-M-Asymmetric BEKK model.

Thank you for your instructions.
Regards.
Bella.
Attachments
The Asymmetric E¤ects of Oil Price Shock.pdf
(397.05 KiB) Downloaded 77 times
Bella
 
Posts: 11
Joined: Tue Aug 21, 2012 2:50 am

Re: Hafner Herwartz 2006

Postby TomDoan » Mon Aug 27, 2012 8:11 am

TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Re: Hafner Herwartz 2006

Postby Bella » Thu Aug 30, 2012 7:34 am

Thanks Tom. Here i have another question that is how i define the shock in the " compute hvec=%%vech_a*shock" in the part of "Use the VECH representation to compute the VIRF to the original shock" if I'd like to make volatility impulse responses of oil price and GDP in a bivariate varma-garch-m-asymmetric Bekk mode.

It is like that in the following in the Replication file for Hafner and Herwartz(2006)
sstats(max) / %if(date==920916,t,0)>>xblackwed %if(date==930802,t,0)>>xecpolicy
compute blackwed=fix(xblackwed),ecpolicy=fix(xecpolicy)
compute eps0=rv(blackwed)
compute sigma0=hh(blackwed)
compute shock=1.e+4*%vec(%outerxx(eps0)-sigma0)

but how i define eps0=rv(),sigma0=hh(), shock=1.e+4*%vec(%outerxx(eps0)-sigma0)? to make a simple volatility impulse responses.
Bella
 
Posts: 11
Joined: Tue Aug 21, 2012 2:50 am


Return to Examples and Sample Code

Who is online

Users browsing this forum: No registered users and 1 guest