Dynare can't recognize irf_shocks

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.

Dynare can't recognize irf_shocks

Postby rCamposCruz » Thu Feb 20, 2014 8:28 pm

Hi, good afternoon!

I'm building an application and, while testing the enverionment on my server (linux system) I've run on the following problem:

Dynare throws the a error while reading the line

stoch_simul(irf=12,irf_shocks=( e_B e_I)) c_O c_RT c;

through octave:

syntax error, unexpected NAME

I've run tests on the .mod code SEVERAL TIMES on my computer (a windows system) with no problem whatsoever, so I don't believe there's really something wrong with the code, but the dynare/octave installation itself on the server.

Can you guys give me any tips/advice/solutions in order to solve this pickled situation? :shock:
rCamposCruz
 
Posts: 5
Joined: Thu Feb 20, 2014 8:23 pm

Re: Dynare can't recognize irf_shocks

Postby jpfeifer » Fri Feb 21, 2014 5:58 am

Try putting a comma between the two shocks in irf_shocks.
------------
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: Dynare can't recognize irf_shocks

Postby rCamposCruz » Fri Feb 21, 2014 4:37 pm

I tried

stoch_simul(irf=12,irf_shocks=(e_B , e_I)) c_O c_RT c;

stoch_simul(irf=12,irf_shocks=(e_B, e_I)) c_O c_RT c;

stoch_simul(irf=12, irf_shocks=(e_B,e_I)) c_O c_RT c;

stoch_simul(irf=12, irf_shocks=(e_B ,e_I)) c_O c_RT c;


to no avail.

And I was able to run this same code on my home computer... any ideas T-T?
rCamposCruz
 
Posts: 5
Joined: Thu Feb 20, 2014 8:23 pm

Re: Dynare can't recognize irf_shocks

Postby jpfeifer » Fri Feb 21, 2014 5:36 pm

If you are not using Dynare 4.4, please try it.
If you are, please post the full error message. In particular, is it a Matlab or Dynare preprocessing error? If the problem occurs after preprocessing, please post the generated m-file (the one with the same name as your mod-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: Dynare can't recognize irf_shocks

Postby rCamposCruz » Fri Feb 21, 2014 5:50 pm

It doesn't get to generate a .m file, this is the log:


Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

ERROR: nakaneProgram.mod:515.21-30: syntax error, unexpected NAME
Starting Dynare (version 4.1.2).
Starting preprocessing of the model file ...

error: DYNARE: preprocessing failed
error: called from:
error: /usr/share/octave/site/api-v37/m/dynare.m at line 128, column 1


Hope it helps to shed some light
rCamposCruz
 
Posts: 5
Joined: Thu Feb 20, 2014 8:23 pm

Re: Dynare can't recognize irf_shocks

Postby jpfeifer » Fri Feb 21, 2014 5:56 pm

Please upgrade to 4.4.
------------
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: Dynare can't recognize irf_shocks

Postby rCamposCruz » Mon Feb 24, 2014 6:10 pm

I was able to update it only as far as 4.3, as I run a Debian Squeeze server. Other versions aren't compatible with the system.

Anyhow, I think that now it compile the whole .mod to .m but still generates an error:

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Local state space iteration (second order).
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.
[mex] Quasi Monte-Carlo sequence (Sobol).
[mex] Markov Switching SBVAR.

Starting Dynare (version 4.3.0).
Starting preprocessing of the model file ...
Substitution of endo leads >= 2: added 3 auxiliary variables and e
Substitution of endo lags >= 2: added 21 auxiliary variables and e
Found 113 equation(s).
Evaluating expressions...done
Computing static model derivatives:
- order 1
Computing dynamic model derivatives:
- order 1
- order 2
Processing outputs ...done
Preprocessing completed.
Starting MATLAB/Octave computing.

error: structure has no member `static_and_dynamic_models_differ'
error: called from:
error: /usr/share/dynare/matlab/evaluate_steady_state.m at line
error: /usr/share/dynare/matlab/resol.m at line 104, column 24
error: /usr/share/dynare/matlab/check.m at line 73, column 25
error: /root/sources/other_sources/nakaneProgram.m at line 1040,
error: /usr/share/dynare/matlab/dynare.m at line 182, column 1


What is happening now?
rCamposCruz
 
Posts: 5
Joined: Thu Feb 20, 2014 8:23 pm

Re: Dynare can't recognize irf_shocks

Postby rCamposCruz » Tue Feb 25, 2014 2:53 pm

Another note: the nakaneProgram.mod has only 515 lines of code, strongly confirming that the problem isn't on the .mod ...

The weird thing is that I it run on my windows machine, it's dynare is on the version 4.3.3, is there a way to update from 4.3.0 to it on Squeeze?

Is this difference on subversions enough to cause such behavior?
rCamposCruz
 
Posts: 5
Joined: Thu Feb 20, 2014 8:23 pm

Re: Dynare can't recognize irf_shocks

Postby jpfeifer » Wed Feb 26, 2014 11:10 am

The error message refers to the m-file generated by Dynare, not the mod-file.

Regarding the versions: yes, the version makes a difference, because the irf_shocks-option only exists for more recent versions and the error message you get now seems to be related to a bug in 4.3.
------------
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: Dynare can't recognize irf_shocks

Postby SébastienVillemot » Thu Feb 27, 2014 3:12 pm

Hi,

We don't provide a pre-compiled binary of Dynare 4.4 for Debian Squeeze because some libraries are outdated/non-available on that platform.

You can however try to compile Dynare 4.4.1 from source.

An alternative is to upgrade your server to Debian Wheezy, which is the latest Debian stable release. We provide binaries of Dynare 4.4.1 for Debian Wheezy.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 3 guests