ERROR RUNNING MOD FILE

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 RUNNING MOD FILE

Postby MICHAEL1 » Sat Jan 28, 2012 6:53 am

Hi, i am a new user of Dynare. After running my mod file the following error occured:

Starting Dynare (version 4.2.4).
Starting preprocessing of the model file ...
ERROR: hans.mod:14.28: syntax error, unexpected NAME

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

Can you please help me with the possible meaning of the above?

Thank you,
MICHAEL1
 
Posts: 3
Joined: Fri Jan 27, 2012 3:55 pm

Re: ERROR RUNNING MOD FILE

Postby MichelJuillard » Sat Jan 28, 2012 9:04 am

There is an error on line 14 (column 28) of hans.mod. Please, upload hans.mod so that we can tell you more.

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: ERROR RUNNING MOD FILE

Postby MICHAEL1 » Sat Jan 28, 2012 5:41 pm

Thank you very much for your time,

Michael
Attachments
hans.mod
(532 Bytes) Downloaded 126 times
MICHAEL1
 
Posts: 3
Joined: Fri Jan 27, 2012 3:55 pm

Re: ERROR RUNNING MOD FILE

Postby donihue » Sun Jan 29, 2012 11:35 am

You need to add an "*" in line 13, as follows:
alpha*c*h=(1-theta)*(1-h)*y;
Also, you need to include sigma in the parameter definitions and give it a value. The model will then run.

Regards
Donihue
donihue
 
Posts: 34
Joined: Mon Sep 12, 2011 1:12 pm

Re: ERROR RUNNING MOD FILE

Postby MICHAEL1 » Sun Jan 29, 2012 2:44 pm

ok, it runs!
Many many thanks,

Michael
MICHAEL1
 
Posts: 3
Joined: Fri Jan 27, 2012 3:55 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests