.mod file error???

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.

.mod file error???

Postby sashe86 » Thu Apr 05, 2012 2:06 pm

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
Attachments
test.mod
(1.39 KiB) Downloaded 65 times
sashe86
 
Posts: 24
Joined: Tue Apr 03, 2012 4:14 pm

Re: .mod file error???

Postby bkjecn » Thu Apr 05, 2012 2:28 pm

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 '='.
bkjecn
 
Posts: 35
Joined: Thu Oct 13, 2011 3:02 am

Re: .mod file error???

Postby sashe86 » Thu Apr 05, 2012 2:33 pm

Genius!! Thank you!!
sashe86
 
Posts: 24
Joined: Tue Apr 03, 2012 4:14 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 4 guests

cron