by Tomasz Woźniak
Summary. A random walk Metropolis-Hastings algorithm for the Bayesian estimation of the Vector Autoregressive models with the conditional volatility process being the Extended Constant Conditional Correlation GARCH(1,1) model is provided, as well as an appropriate estimator for the marginal data density.
Keywords. R, Multivariate GARCH Models, Metropolis-Hastings Sampler, Marginal Data Density
To refer to the code in publications, please, cite one of the following papers:
Woźniak, Tomasz (2015) Testing Causality Between Two Vectors in Multivariate GARCH Models, International Journal of Forecasting, 31(3), pp. 876--894, DOI: 10.1016/j.ijforecast.2015.01.005.
Woźniak, Tomasz (2018) Granger-Causal Analysis of GARCH Models: a Bayesian Approach, Econometric Reviews, 37(4), pp. 325-346, DOI: 10.1080/07474938.2015.1092839.
The project contains the following files:
BayesianECCCGARCH.pdfa vignette presenting the model and R codeBayesianECCCGARCH.Rcontaining the utility functionsBayesianECCCGARCH-example.Rpresenting an application of the functions in a simple examplepriorConstant-M0-shrinkage.Rreproduction of the results from the paper for one of the modelspriorConstant-M1-shrinkage.Rreproduction of the results from the paper for another modeldataECB.RDatadata used in the paper
To download the code simply click on the download icon on the top of this page
and select the format of the compressed file to be downloaded.
You can also choose to fork the project and clone your copy from the repository. Just follow the steps (requires a GitLab account):
-
On this page: fork the project by clicking the icon on the top of this page (more info)
-
On you computer: clone the repository you have just forked to create its local copy that you can work with.
-
Optional: if you find a bug or if you improve the code, please feel free to submit a pull/merge request. (more info)

