Unexpected error, syntax, 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.

Unexpected error, syntax, Name

Postby msh855 » Mon Feb 27, 2012 1:56 pm

Hi can somebody help me with this code.

I cannot understand what is wrong. I will highly appreciate your soonest replies.

I am also attaching the file.

cheers
Attachments
NKmodel.mod
Final version corrected for some equations.
(728 Bytes) Downloaded 353 times
Last edited by msh855 on Mon Feb 27, 2012 2:27 pm, edited 1 time in total.
msh855
 
Posts: 39
Joined: Thu Feb 23, 2012 8:32 pm

Re: Unexpected error, syntax, Name

Postby jpfeifer » Tue Feb 28, 2012 9:53 am

ERROR: NKmodel.mod:23.18: syntax error, unexpected NAME

As Dynare explicitly says: there is an error in line 23, column 18. A * is missing. Moreover, your steady state starting values are poor and Dynare can't find the steady state.
Attachments
NKmodel.mod
Corrected Typo
(759 Bytes) Downloaded 225 times
------------
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: Unexpected error, syntax, Name

Postby msh855 » Tue Feb 28, 2012 12:38 pm

Thank you a lot. I just now begun to use dynare.

Can you please advice what's the best for figuring out the s.s values ?? I have an example of this code that do not include any initial states. what do they do differently ?? Can i do the same ? I am attaching this code.

I will highly appreciate any response.
Attachments
cgg.mod
(1.6 KiB) Downloaded 167 times
msh855
 
Posts: 39
Joined: Thu Feb 23, 2012 8:32 pm

Re: Unexpected error, syntax, Name

Postby jpfeifer » Tue Feb 28, 2012 1:31 pm

The best way always is to compute the steady state by hand. In the attached mod-file, the model was log-linearized so that all SS values are 0. Hence, Dynare's default initial values of 0 are sufficient. Note that in case of log-linearization you need to compute the SS values as they enter the parameters.
------------
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 11 guests