preprocessing failed

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.

preprocessing failed

Postby merdogul » Sun Oct 18, 2009 6:17 pm

Hi,
I have quite simple code and try to simulate it on dynare 4.0.4. However i encounter following error message;

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: homework1.mod:68.9-13: Symbol k is not a function name.

??? Error using ==> dynare at 96
DYNARE: preprocessing failed

I read most of the replies on this type of errors but i cannot fix my problem.
Could anyone helps me? Thanks
Attachments
rbc1.mod
(1.34 KiB) Downloaded 79 times
merdogul
 
Posts: 3
Joined: Sun Oct 18, 2009 6:06 pm

Re: preprocessing failed

Postby SébastienVillemot » Mon Oct 19, 2009 9:43 am

Hi,

As the error message tells you, the error is on line 68, between columns 9 and 13.

At that place, you use "k(-1)" in an "initval" block. Leads and lags are forbidden at that place, and the parentheses are then interpreted as function calls, hence the error message.

Just replace "k(-1)" by "k" and this should fix your problem.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 10 guests