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

Bestsw.mod (11.5 KB)

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.

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

As the error message says, there is a wrong bracket in line 382.