Bayesian VAR Error message

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Bayesian VAR Error message

Postby econjunior » Sun Mar 05, 2017 1:41 am

Hi Professor Pfeifer,

I am trying to run a Bayesian VAR model, and I have followed the instructions in the paper "BVAR models 'a la Sims' in Dynare" to write my code.

Basically, the code I'm running is

"
var dx dy
varobs dx dy

bvar_irf(8,'Cholesky')

"

However, when I run this code, I receive the error message that although 2 variables are defined, no equations are defined.
As I followed the exact notation as in the paper listed above, I'm wondering what might be missing from this code.

Thank you so much for your time and help!
econjunior
 
Posts: 3
Joined: Sun Mar 05, 2017 1:36 am

Re: Bayesian VAR Error message

Postby jpfeifer » Sun Mar 05, 2017 10:12 am

Please provide the full files to replicate the issue
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Bayesian VAR Error message

Postby econjunior » Sun Mar 05, 2017 5:46 pm

Hi Professor Pfeiffer,

This is the code I used:

Code: Select all
var d_unemployment d_inflation d_depositrate d_lnusdtry;
varobs d_unemployment d_inflation d_depositrate d_lnusdtry;

bvar_irf(4,'Cholesky');
bvar_irf(50,'Cholesky');


I'm getting the following error message:

Code: Select all
Starting Dynare (version 4.4.3).
Starting preprocessing of the model file ...
ERROR: There are 0 equations but 4 endogenous variables!

Error using dynare (line 174)
DYNARE: preprocessing failed


I'm having issues attaching my dataset, but basically it is a four-variable dataset with 115 observations for each variable.

As I am running a BVAR and not a DSGE model, I thought that I did not need to specify a model and followed the same code as in "BVAR a la Sims", which consists of these lines of code, and not a model specification.

I would really appreciate it if you could assist me with this issue. Thank you so much for your time and help!
econjunior
 
Posts: 3
Joined: Sun Mar 05, 2017 1:36 am

Re: Bayesian VAR Error message

Postby jpfeifer » Sun Mar 05, 2017 5:59 pm

Isn't there a
Code: Select all
bvar_density

statement missing as in
https://github.com/DynareTeam/dynare/blob/master/tests/bvar_a_la_sims/bvar_standalone.mod

Regarding data-files, you should always upload everything in one zip-file
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Bayesian VAR Error message

Postby econjunior » Mon Mar 06, 2017 5:07 pm

Thank you so much for your help!

I had one more question - is there a way to generate FEVDs for Bayesian VARs through Dynare?

Thank you again for your time Professor Pfeiffer
econjunior
 
Posts: 3
Joined: Sun Mar 05, 2017 1:36 am

Re: Bayesian VAR Error message

Postby jpfeifer » Tue Mar 07, 2017 12:25 pm

No, I am not aware of any functionality that would allow you to do this automatically.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 7 guests