Optimal Monetary Policy with nonlinear loss function

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.

Re: Optimal Monetary Policy with nonlinear loss function

Postby Beav » Thu Jan 26, 2017 2:30 pm

Thank you so much, I will be doing that for sure.

I have a couple more query. I am sorry to ask you so many things, but you have been very helpful!


1) I was also thinking of trying to apply the extended path method to the model, to have an approximate result of what would happen if expectations were to be taken into account.

Even without the ZLB, I run into an error message when I try to simulate an exogenous cost-push shock, as follows

Code: Select all
%define natural rate shock
shocks;
% var r_nat;
% periods 1:6;
% values -1;
var u_cp; stderr 0.01;
end;

extended_path(periods=100,order=2);


In particular, the error is

Reference to non-existent field 'IntegrationAlgorithm'.
Error in setup_integration_nodes (line 4)
switch EpOptions.IntegrationAlgorithm
Error in extended_path_initialization (line 119)
[nodes,weights,nnodes] = setup_integration_nodes(DynareOptions.ep,pfm);
Error in extended_path (line 39)
[initialconditions, innovations, pfm, ep, verbosity, DynareOptions, DynareResults] = ...
Error in Model (line 183)
extended_path([], 100, [], options_, M_, oo_);
Error in dynare (line 223)
evalin('base',fname) ;



Is there any way in which you could provide me a reference where I could see how the extended path method is to be implemented in Dynare, e.g. some explanatory mod files? If they included the ZLB, then it would be even more awesome.

2) Do you think it would be possible to simulate the model stochastically with a cost-push shock via
Code: Select all
stoch_simul(periods=300, order=2)
, even though the model presents a nonlinear target function, in particular
Code: Select all
x_t=-k*(exp^(a*pi)-1)/a
? Clearly, without ZLB. I have done it and the model gets solved and changes for different parametrization of a, but I wanted to understand whether the results make sense.


Thanks you so much!
Beav
 
Posts: 10
Joined: Tue Dec 27, 2016 4:07 pm

Re: Optimal Monetary Policy with nonlinear loss function

Postby jpfeifer » Fri Jan 27, 2017 8:12 am

1. We are still working on this part of the code. You should use the unstable version. Example files are at https://github.com/DynareTeam/dynare/tree/master/tests/ep
2. As long as your nonlinear function is differentiable, that should work. Even if it is not differentiable, you can still go for a penalty function approach. See the last post at http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=7882&p=23180#p23180
------------
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: Optimal Monetary Policy with nonlinear loss function

Postby Beav » Fri Jan 27, 2017 7:17 pm

Thank you so much!

I have been trying to apply a penalty function approach lately, so as to implement the ZLB without the need of the max function in a stochastic context, but dynare seems to have some difficulty in finding the steady state. I have tried to lower the value of the variance of the shock, but I had no luck there.

Thank you so much again for all your help!
Beav
 
Posts: 10
Joined: Tue Dec 27, 2016 4:07 pm

Previous

Return to Dynare help

Who is online

Users browsing this forum: No registered users and 9 guests