A question about OSR command and policy frontier

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.

A question about OSR command and policy frontier

Postby zhanshuo » Mon Jan 02, 2017 4:37 pm

Dear all,
I am now using OSR to calculate the simple optimal rule and plot the policy frontier.
But I find that all the papers on the topic of policy frontier have given a limitation on variance of the key variable,e.g., in Iacoviello(2005), "I constrain interest rate volatility by imposing an upper bound 25 percent larger than the estimated standard deviation..."
So how should I put a variance constraint in OSR?
Thanks.
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: A question about OSR command and policy frontier

Postby zhanshuo » Sat Jan 07, 2017 1:53 pm

Anyone knows that?
Great thanks.
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: A question about OSR command and policy frontier

Postby jpfeifer » Sun Jan 08, 2017 7:08 pm

That is not easy to impose. Dynare allows you to impose bounds on the parameters, not on the endogenous objects. In the exampe posted at http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=11750 you would probably need to check whether
Code: Select all
var_y(grid_iter)

is above a particular value and then set the output to NaN.
------------
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: A question about OSR command and policy frontier

Postby zhanshuo » Mon Jan 09, 2017 7:34 am

Thanks, I will try.
And could you tell me how to impose constraint on the value of the parameters?
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: A question about OSR command and policy frontier

Postby jpfeifer » Mon Jan 09, 2017 9:22 am

See the manual of the unstable version/4.5 on
Code: Select all
osr_params_bounds
------------
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: A question about OSR command and policy frontier

Postby zhanshuo » Tue Jan 10, 2017 6:43 am

Thanks a lot!
So is there a guide for how to setup dynare 4.5?
and can it co-exist with 4.4.3?
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: A question about OSR command and policy frontier

Postby jpfeifer » Tue Jan 10, 2017 7:57 pm

The unstable version is available at http://www.dynare.org/download/dynare-unstable/
You can select the Dynare version you want to use by providing Matlab with the path to the Matlab subfolder of the respective Dynare version.
------------
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: A question about OSR command and policy frontier

Postby zhanshuo » Sun Jan 15, 2017 2:40 pm

Thanks a lot .
So if I simultaneously add both 4.43 and 4.5 unstable into the matlab path, which version will matlab choose to run ?
And how could I choose to run one of these two versions if I wanna to manually, if both of them are in my matlab path?
zhanshuo
 
Posts: 44
Joined: Fri Nov 25, 2016 7:59 am

Re: A question about OSR command and policy frontier

Postby jpfeifer » Tue Jan 17, 2017 10:53 am

Always only add the one you want to your path. For example, when you use 4.4.3, use something like
Code: Select all
addpath('C:\dynare\4.4.3\matlab')

in Matlab to select 4.4.3 (of course with your path)
------------
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: Google [Bot] and 7 guests