Page 1 of 1

.mod file error???

PostPosted: Thu Apr 05, 2012 2:06 pm
by sashe86
Hello,

I am working through Chapter 3 of the User Guide to create a .mod file. I have created said file, however, when I try to run it I get the following error: Everytime I try to adjust the error and re-run, another error will appear, for example;


ERROR: test.mod:48.1-11: syntax error, unexpected NAME, expecting CORR or END or VAR

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

I have attached the .mod file I created, if anyone could help?

Thanks so much,
Sashe86

Re: .mod file error???

PostPosted: Thu Apr 05, 2012 2:28 pm
by bkjecn
You have two syntax errors:
1) You need to end the shocks block. That is, put a line reading 'end;' after the line 'var e = sigma^2;%add a shock with variance sigma squared.'.
2) You should not have a '==' in the stoch_simul command. Use only one '='.

Re: .mod file error???

PostPosted: Thu Apr 05, 2012 2:33 pm
by sashe86
Genius!! Thank you!!