by StephaneAdjemian » Fri Feb 17, 2006 10:07 am
Hi Niels,
The computation of the posterior IRFs starts from line 2473 in metropolis.m.
The architecture of the four dimensional arrays is as follows:
dimension 1 = periods
dimension 2 = (selected) endogenous variables
dimension 3 = exogenous variables (structural shocks)
dimension 4 = draws in the posterior distribution.
But I am not sure you really need to look inside these mat files. The IRFs produced by dynare are saved in the global oo_ :
oo_.PosteriorIRF.Dsge.Mean :: gives you the posterior mean IRFs,
oo_.PosteriorIRF.Dsge.Median :: gives you the posterior median IRFs,
oo_.PosteriorIRF.Dsge.Std :: gives you the standard deviation of the IRFs posterior distribution
oo_.PosteriorIRF.Dsge.Distribution :: gives you the deciles of the IRFs posterior distribution.
Best, St