Error: Unexpected ';'

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.

Error: Unexpected ';'

Postby DanielG » Sun Mar 11, 2012 4:45 pm

Hi everyone

Running my .mod file, Dynare tells me all the time the following error message:

Starting preprocessing of the model file ...
ERROR: new.mod:93.82: syntax error, unexpected ';'

??? Error using ==> dynare at 126
DYNARE: preprocessing failed

I think there must be any syntax error, but I don't find it. I would highly appreciate if you could help me on this.

best regards,

Daniel
Attachments
new.mod
Dynare .mod file
(3.77 KiB) Downloaded 87 times
DanielG
 
Posts: 9
Joined: Sun Mar 11, 2012 4:37 pm

Re: Error: Unexpected ';'

Postby jpfeifer » Tue Mar 13, 2012 4:34 pm

There is a missing closing bracket in the Taylor rule.
------------
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: Error: Unexpected ';'

Postby DanielG » Sat Mar 17, 2012 10:25 am

Hi jpfeifer

Thanks a lot, now it works. However, Dynare tells me now:

Warning: Matrix is singular to working precision.

This I think is strange as the author of the attached paper used the very same model but was able to estimate the model, therefore I wanted to ask you if you have any idea why this happens?

The only thing I changed actually is that I use for the three foreign variables yw, iw and piw for each of them a seperate AR(1) process rather than a VAR(2) model, but I think that should not generate the problem, does it?

Otherwise I tried with the same parameter values as him once with the priors and once with the estimated model parameters stated in his paper.

Does someone has any idea where the problem is and how to proceed?

best regard

Daniel
Attachments
OutputGap_StefanLeist.pdf
Replicated paper
(793.31 KiB) Downloaded 77 times
new.mod
Dynare code .mod file
(3.84 KiB) Downloaded 64 times
DanielG
 
Posts: 9
Joined: Sun Mar 11, 2012 4:37 pm

Re: Error: Unexpected ';'

Postby DanielG » Sun Mar 18, 2012 7:05 pm

Hi everyone

Ok, this time I found the error by myself. Seems to work now. So if anyone is interested in getting a Beltran Draper DSGE Model (small open economy with consumption habits), you can have a look at this .mod file. Should work now.

best regards,

Daniel
Attachments
new.mod
(3.89 KiB) Downloaded 99 times
DanielG
 
Posts: 9
Joined: Sun Mar 11, 2012 4:37 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron