Koop, Leon-Gonzalez, Strahan 2010

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

Koop, Leon-Gonzalez, Strahan 2010

Postby TomDoan » Tue May 15, 2012 2:54 pm

This is an example of the Gibbs sampling procedure for cointegrated models described in Koop, León-González and Strachan(2010), "Efficient Posterior Simulation for Cointegrated Models with Priors on the Cointegration Space", Econometric Reviews, vol. 29, no. 2, 224-242. This actually does just the flat prior, though adding the types of priors they describe isn't difficult.

The key idea in the paper is that you can avoid the difficult problem of sampling the cointegrating vector (which has a highly non-standard distribution) by temporarily shifting the normalization over to the loading matrix alpha. This makes the "B" matrix (rather than the original beta) conditionally Normal.

This samples the alpha and the augmenting lags on the differences in one Gibbs block given beta and the covariance matrix sigma, then sigma given the residuals from the model, then beta (or actually "B") given alpha. The alpha and beta need to be renormalized at the end.

cointrates.rpf
Program file
(5.88 KiB) Downloaded 94 times

haverate.rat
Data file
(124 KiB) Downloaded 84 times
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm

Return to Examples and Sample Code

Who is online

Users browsing this forum: No registered users and 1 guest

cron