Restricted parameter in OSR

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.

Restricted parameter in OSR

Postby vasil » Tue Aug 07, 2012 4:21 pm

Hi all,
I have a question about the optimal simple rule command osr. I was wondering if there was a way how to incorporate the restriction that rho is between 0 and 1 in the standard Taylor rules of the form:
r_t = rho*r_{t-1} + (1-rho)*(phi1*pi_t + phi2*y_t)

I tried to do the optimal simple rule analysis but am getting parameters rho bigger than 1 for almost any weights of the loss function.

Thanks in advance for any suggestions.

V.
vasil
 
Posts: 1
Joined: Fri Jul 27, 2012 2:15 pm

Re: Restricted parameter in OSR

Postby SébastienVillemot » Fri Aug 10, 2012 1:24 pm

This is currently not possible. However, implementing constrained OSR is on our todolist (therefore it should be included in some future release), see:

https://www.dynare.org/trac/ticket/58
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Restricted parameter in OSR

Postby jpfeifer » Wed Aug 15, 2012 2:28 pm

You can use a non-linear (logistic) transformation to bound rho, i.e. use 1/(1+exp(-rho)) instead of rho and back out the original parameter by inverting this transformation.
------------
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: Restricted parameter in OSR

Postby econ86 » Fri Jun 26, 2015 4:55 pm

De
Last edited by econ86 on Sun Nov 29, 2015 10:31 am, edited 1 time in total.
econ86
 
Posts: 78
Joined: Sun Apr 26, 2015 10:32 am

Re: Restricted parameter in OSR

Postby jpfeifer » Wed Jul 01, 2015 5:36 am

Basic functionality is now available, see https://github.com/DynareTeam/dynare/issues/948
------------
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: Restricted parameter in OSR

Postby fabiac » Mon Jul 13, 2015 6:17 pm

Dear Dr. Pfeifer,

I am trying to run a constrained OSR, transforming the coefficients in the Taylor rule so that they are contrained to be positive. So I basically apply the logistic transformation you suggested in one of the above posts. The problem is that, all else equal, the OSR routine gives me different solutions even when the unconstrained optimum is already positive. I am setting tolf at 1e-20 to avoid numerical approximation problems. Do you know why that might be happening? Thank you, Fabia
fabiac
 
Posts: 23
Joined: Sun Jun 27, 2010 3:35 pm

Re: Restricted parameter in OSR

Postby jpfeifer » Tue Jul 14, 2015 5:19 am

How exactly do you impose the transformation?
------------
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: Restricted parameter in OSR

Postby fabiac » Tue Jul 14, 2015 1:13 pm

Originally, the Taylor rule is:
R^4=(R(-1)^4)^rho_R*(R_ss^4*(pie_4_ahead(+3)/pietarget)^gamma_pie*( (gdp/steady_state(gdp)) )^gamma_y)^(1-rho_R)*((b_E+b_B_c+b_B_h)/(b_E_ss+b_B_c_ss+b_B_h_ss))^gamma_cred*(pie_C^4/pie_C(-1)^4)^gamma_dpie*exp(eps_R);

I create a new parameter, gamma_y_bounded, and its value is obtained in the steady_state_model block as: gamma_y_bounded= 1/(1+exp(-gamma_y));

In the osr_params command, I use either gamma_y or gamma_y_bounded, in addition to the other parameters I'm interested in.

Thanks!
fabiac
 
Posts: 23
Joined: Sun Jun 27, 2010 3:35 pm

Re: Restricted parameter in OSR

Postby jpfeifer » Wed Jul 15, 2015 6:48 am

Then this sounds like there are several local maxima. Have you checked the values of the objective function?
------------
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 4 guests

cron