Indeterminacy when Replicating Krause & Lubik Code

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.

Indeterminacy when Replicating Krause & Lubik Code

Postby playa_b » Mon Mar 30, 2009 9:59 am

Hi there,

I tried to replicate the Krause and Lubik Code of the (Ir)- relevance of real wage rigidity in in the NKM with search frictions. When I run the code I have indeterminacy problems. Dynare's error message is:

??? Error using ==> print_info at 24
Blanchard Kahn conditions are not satisfied: indeterminacy

Error in ==> stoch_simul at 50
print_info(info);

Error in ==> KrauseLubik at 139
info=stoch_simul(var_list_);

Error in ==> dynare at 26
evalin('base',fname) ;

I attached the mod file. I don't know how to get further on. Please help me.

Thanks a lot.

Björn
Attachments
KrauseLubik.mod
(4.36 KiB) Downloaded 381 times
playa_b
 
Posts: 12
Joined: Thu Mar 26, 2009 1:51 pm

Re: Indeterminacy when Replicating Krause & Lubik Code

Postby StephaneAdjemian » Mon Mar 30, 2009 10:21 am

Hi Björn,

Your mod file is not working. First you cannot use the symbol % to comment out a line with a dynare statement in the mod file. Use // instead. Second, there is a problem on line 31. I think that, with dynare 4, you cannot use the symbol @ in a dynare statement (you can call the quad function and update the value of the parameter Hauc in the steady state file). I tried with dynare 3 but the function afa is missing.

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: Indeterminacy when Replicating Krause & Lubik Code

Postby playa_b » Mon Mar 30, 2009 10:56 am

Hi Stephan,

I use the version 3 of Dynare and the symbol @ works well. I have another code which works with this function. I attach the afa file, so that you can run the code.

Thank you.

Regards,

Björn
Attachments
afa.m
(121 Bytes) Downloaded 317 times
playa_b
 
Posts: 12
Joined: Thu Mar 26, 2009 1:51 pm

Re: Indeterminacy when Replicating Krause & Lubik Code

Postby StephaneAdjemian » Mon Mar 30, 2009 1:03 pm

Björn,

I don't know this model and I don't have time to search and read the paper by Krause and Lubik... You have eight jumping variables but only seven generalized eigenvalues greater that one. The problem may be related to an error in the timing of the variables. A predetermined variable X at time t have to be written X(-1) in dynare (this variable is choosen in t-1).

If I change , in the production function, n (employment??) by n(-1), dynare solves the model without trouble... But, again, I don't know this model...

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.

Re: Indeterminacy when Replicating Krause & Lubik Code

Postby quiko » Mon Apr 28, 2014 1:36 pm

Hi,

I am interested in replicating this model. I just would like to ask you, is it not supposed to be freely available a code when the work is published? I am interested in this code for replication, but I haven't found any source yet.

Best,
F.
quiko
 
Posts: 17
Joined: Sat Mar 29, 2014 11:06 pm

Re: Indeterminacy when Replicating Krause & Lubik Code

Postby J.Höffler » Sat Aug 02, 2014 3:56 am

If you are interested in replication this might be of interest to you: viewtopic.php?f=2&t=5926
J.Höffler
 
Posts: 15
Joined: Fri Aug 01, 2014 3:14 pm


Return to Dynare help

Who is online

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