.mod file error?


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,
test.mod (1.39 KB)

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 ‘=’.

Genius!! Thank you!!