Page 1 of 1

ERROR RUNNING MOD FILE

PostPosted: Sat Jan 28, 2012 6:53 am
by MICHAEL1
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,

Re: ERROR RUNNING MOD FILE

PostPosted: Sat Jan 28, 2012 9:04 am
by MichelJuillard
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

Re: ERROR RUNNING MOD FILE

PostPosted: Sat Jan 28, 2012 5:41 pm
by MICHAEL1
Thank you very much for your time,

Michael

Re: ERROR RUNNING MOD FILE

PostPosted: Sun Jan 29, 2012 11:35 am
by donihue
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

Re: ERROR RUNNING MOD FILE

PostPosted: Sun Jan 29, 2012 2:44 pm
by MICHAEL1
ok, it runs!
Many many thanks,

Michael