Ramsey:syntax error, unexpected LN, expecting NAME

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.

Ramsey:syntax error, unexpected LN, expecting NAME

Postby 82323100 » Tue Oct 12, 2010 6:12 am

Dear all:
I got the following results when I run my Ramsey dynare codes, please help me!!
dynare Bestsw

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.

Starting Dynare ...
Starting preprocessing of the model file ...
ERROR: Bestsw.mod:8.8-9: syntax error, unexpected LN, expecting NAME

??? Error using ==> dynare at 96
DYNARE: preprocessing failed
Attachments
Bestsw.mod
Ramsey
(11.49 KiB) Downloaded 108 times
82323100
 
Posts: 9
Joined: Thu Sep 09, 2010 1:28 am

Re: Ramsey:syntax error, unexpected LN, expecting NAME

Postby jpfeifer » Tue Oct 12, 2010 9:20 am

You use LN as a variable name, but it is a reserved word in Dynare denoting the natural logarithm. Please change it to something else.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Ramsey:syntax error, unexpected LN, expecting NAME

Postby 82323100 » Tue Oct 12, 2010 2:56 pm

dynare Bestsw

Configuring Dynare ...
[mex] Generalized QZ.
[mex] Sylvester equation solution.
[mex] Kronecker products.
[mex] Sparse kronecker products.
[mex] Bytecode evaluation.
[mex] k-order perturbation solver.
[mex] k-order solution simulation.

Starting Dynare (version 4.1.2).
Starting preprocessing of the model file ...
ERROR: Bestsw.mod:382.12: syntax error, unexpected '(', expecting EQUAL

??? Error using ==> dynare at 126
DYNARE: preprocessing failed
82323100
 
Posts: 9
Joined: Thu Sep 09, 2010 1:28 am

Re: Ramsey:syntax error, unexpected LN, expecting NAME

Postby jpfeifer » Tue Oct 12, 2010 9:06 pm

As the error message says, there is a wrong bracket in line 382.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 6 guests