Deterministic simulation Gertler and Karadi (2011) model

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.

Deterministic simulation Gertler and Karadi (2011) model

Postby marco_dp » Wed Feb 17, 2016 2:04 pm

Dear Dynare staff,

I am trying to run a deterministic simulation, by using the following command
Code: Select all
simul (periods=100);
in the model by Gertler and Karadi (2011).
While the stochastic simulation works properly, when I try to use simul command the simulation does not work and the endogenous variables take NaN as values.
The model is correctly specified (it is just the one downloaded from their website and also initval are correct). How can I solve this problem?
Thanks is advance for your kind help.
Attachments
DSGE.mod
(4.7 KiB) Downloaded 150 times
marco_dp
 
Posts: 24
Joined: Wed May 15, 2013 3:07 pm

Re: Deterministic simulation Gertler and Karadi (2011) model

Postby MichelJuillard » Tue Feb 23, 2016 9:33 am

The algorithm used for solving deterministic models solves for the trajectory of all endogenous variables given initial values and terminal values (steady state).
This comes down to solving for current variables given the value of lead and lag variables.
In this model, equations 2 and 4 have a unique current variable, R, so the above approach can't work.
I need to think if there is a work around.
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: Deterministic simulation Gertler and Karadi (2011) model

Postby MichelJuillard » Tue Feb 23, 2016 10:01 am

In the model only the expectation of Rk matters for the dynamics, not its current value.
In deterministic perfect foresight models, the expectation of a variable is equal to its future value.
Here is a version of the model that uses the expectation of Rk (eRk) instead of its current value. Equation 6 is modified accordingly.
I have added tags to the equations to help me see which equation was determining which current variable (the mapping is probably not unique).

Best

Michel
Attachments
DSGE1.mod
(4.92 KiB) Downloaded 231 times
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: Deterministic simulation Gertler and Karadi (2011) model

Postby marco_dp » Thu Feb 25, 2016 9:14 am

Dear Michel Juillard,

thanks a lot for your help to solve this problem. Now it works fine.
Thanks again

my best regards
marco
marco_dp
 
Posts: 24
Joined: Wed May 15, 2013 3:07 pm


Return to Dynare help

Who is online

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