Question about 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.

Question about OSR

Postby dphm » Sun Sep 20, 2015 12:48 am

Hi all

I see that very often when the command "osr" is used, it is for linear models. For instance, the most common usage is a Taylor rule whereby the other equations are expressing output gap and inflation in terms of other variables.

However, the model I have now are Euler equations, equations from the production sector, external sector etc. and they're not log-linearized. In such a case, can I still apply the "osr" command?

Thanks.
dphm
 
Posts: 16
Joined: Fri Sep 11, 2015 12:27 am

Re: Question about OSR

Postby dphm » Sun Sep 20, 2015 7:39 am

Hi all

I refer to my earlier post. I realized that OSR works with any sort of model. But now the thing is how come the optimal values seem to be exactly the values that I initialized?

And then if I don't initialize, this error pops up:
Error using osr1 (line 51)
OSR: At least one of the initial parameter values for osr_params is NaN


How does this command actually work? So it calculates the optimal values and then have those impulse response functions which are produced taken into account the optimal parameters?

Thanks.
dphm
 
Posts: 16
Joined: Fri Sep 11, 2015 12:27 am

Re: Question about OSR

Postby jpfeifer » Mon Sep 21, 2015 11:46 am

See the manual entry: http://www.dynare.org/manual/index_29.html
OSR only solves linear quadratic problems, with all the issues and restrictions involved.
------------
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: Question about OSR

Postby jojokre » Mon Oct 17, 2016 12:21 pm

Hi Johannes,

your statement that OSR solves LQ problems "with all the issues and restrictions involved" means also that the steady state has to be efficient?

And in the example in the manual the model is entered completely in linear form. How is that a linear-QUADRATIC problem than?

Thank you for your answer.
jojokre
 
Posts: 14
Joined: Thu Jan 15, 2015 1:49 pm

Re: Question about OSR

Postby jojokre » Mon Oct 17, 2016 12:43 pm

Sorry... another, more specific question: If I use the function
Welfare = Util + beta*Welfare(+1);
as objective function in the OSR command (osr welfare;), does the OSR command than do a second-order approximation of this equation and finds, e.g., the coefficients of a Taylor rule, which maximize welfare in my model?
jojokre
 
Posts: 14
Joined: Thu Jan 15, 2015 1:49 pm

Re: Question about OSR

Postby jpfeifer » Mon Oct 17, 2016 2:15 pm

What do you mean with
osr welfare;
?

You can see in the manual that Dynare's osr-command minimizes a weighted sum of unconditional (co-)variances. For this, you only need a first-order approximation, because by construction there are no linear terms showing up. This in general inconsistent with welfare maximization if there are linear terms showing up in welfare (e.g. the case of a distorted steady state). For those cases, the osr-command is not applicable.
------------
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: Question about OSR

Postby jojokre » Tue Oct 18, 2016 9:51 am

Sorry, I think I didn't look close enough at the manual...

So, if I understand it correctly now: Let's say I want to find the coefficients of a Taylor rule which maximize welfare in my model. I have first have to derive the loss function per hand, i.e., do a second-order approximation of utility. Than, from my loss function, I can see which variables are my "y"-variables (endogenous variables whose (co)-variance enters the loss function) and what are the corresponding weights. This is what I pass on to the osr-command and to optim_weights. (And first of all, I have to make sure my steady state is efficient).

Thanks a lot!
jojokre
 
Posts: 14
Joined: Thu Jan 15, 2015 1:49 pm

Re: Question about OSR

Postby jpfeifer » Tue Oct 18, 2016 12:34 pm

Yes, if you want to use the OSR-command, that would be correct. When deriving your welfare function, it must not include linear terms, which is where the efficient steady state comes in. Moreover, you need to be interested in unconditional second moments, not conditional ones. If that is not the case. you need to do it differently.
------------
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 6 guests