Problem with deterministic simulation

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.

Problem with deterministic simulation

Postby alef87 » Tue Sep 27, 2011 9:26 am

Hello to everyone,
I am trying to construct a dynare file for the model of Gertler (1999) http://ideas.repec.org/p/cvs/starer/97-14.html. I do not have any problem with the laissez faire economy and it works perfectly. Then, when adding the government it works for the steady state determination but it fails in running the simulation after the permanent shock on exogenous variables.
The model is right because when I transform two exogenous deterministic variables in stochastic processes both the steady state (identical to the deterministic one) and the simulation work.
When executing the file (in Octave) the error that I receive is:
"error: A(I): Index exceeds matrix dimension.
error: called from:
error: /home/alessandro/Desktop/Final_dissertation/Dynare/gertler_SSS_det_dyn
amic.m at line 16, column 6
error: /usr/share/dynare/matlab/sim1.m at line 71, column 20
error: /usr/share/dynare/matlab/simul.m at line 93, column 9
error: /home/alessandro/Desktop/Final_dissertation/Dynare/gertler_SSS_det.m a
t line 182, column 1
error: /usr/share/dynare/matlab/dynare.m at line 134, column 1"

I suspect it may be a bug of dynare.
Thank you very much,
Alessandro
Attachments
gertler_SSS_det.mod
(1.28 KiB) Downloaded 135 times
alef87
 
Posts: 2
Joined: Thu Sep 15, 2011 8:18 pm

Re: Problem with deterministic simulation

Postby SébastienVillemot » Wed Oct 12, 2011 4:06 pm

With Dynare 4.2.2, when running your MOD file, I get the following error message:

Code: Select all
ERROR: A .mod file cannot contain both a simul command and varexo_det declaration (all exogenous variables are deterministic in this case)


So I guess that you are using an old version of Dynare which was allowing this
incorrect setup.

If I replace "varexo_det" with "varexo", then the MOD file runs without error.

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: No registered users and 13 guests