Page 1 of 1

bayesian VAR

PostPosted: Wed Oct 12, 2011 4:03 am
by ztbhewitt
Hi everyone,
I have a question about Bayesian VAR. Can dynare generate impluse response after implementing Bayesian VAR?

Re: bayesian VAR

PostPosted: Thu Oct 27, 2011 3:30 pm
by SébastienVillemot
This is not implemented. But it is not too difficult to do by yourself.

Best,

Re: bayesian VAR

PostPosted: Mon Nov 14, 2011 9:46 am
by StephaneAdjemian
Actually it is implemented but undocumented. There is a matlab (in dynare) routine called bvar_irf.m which can be called in the mod file (after the estimation command). The routine admits two inputs: the number of lags (any positive integer) and optionally the identification scheme:

  1. Cholesky, this is the default.
  2. SquareRoot, using matlab's sqrtm routine.

The advantage of the second approach is that it is independent of the ordering of the variables contrary to the first identification scheme (this advantage comes at the cost in terms of interpretation). The second argument has to be passed as a string. For instance:

Code: Select all
bvar_irf(4,'SquareRoot');

Re: bayesian VAR

PostPosted: Wed Dec 14, 2011 1:51 am
by cobleton
Dear Stephanie,

I had the same question than the OP. I saw the code bvar_irf.m in my Dynare files, and I would like to double-check whether the IRF output comes with the confidence intervals. Also, what is the methodology used in the code (if there is error bands) to implement confidence intervals?

Thank you so much !