Page 1 of 1

Ramsey:syntax error, unexpected LN, expecting NAME

PostPosted: Tue Oct 12, 2010 6:12 am
by 82323100
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

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

PostPosted: Tue Oct 12, 2010 9:20 am
by jpfeifer
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.

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

PostPosted: Tue Oct 12, 2010 2:56 pm
by 82323100
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

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

PostPosted: Tue Oct 12, 2010 9:06 pm
by jpfeifer
As the error message says, there is a wrong bracket in line 382.