computing optimal rules

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.

computing optimal rules

Postby xl » Sun Feb 05, 2006 2:25 am

Hi,
I just started to learn Dynare a few days ago, need to get the optimized rules (complicated and simple ones) from a model. What algorithm does Dynare use to compute the optimal rules? Would Dynare generate the exactly same results as ones from S
xl
 
Posts: 6
Joined: Sat Feb 04, 2006 11:02 am
Location: Canberra

Postby MichelJuillard » Wed Feb 08, 2006 3:07 pm

1) For optimal simple rules, Dynare computes the objective function in osr_obj.m then uses a numerical optimizer to find the best parameters

2) For optimal rules under commitment, Dynare computes the optimal linear regulator by writing the Lagrangean of the problem and then creating an augmented linear rational expectation model that is solved as any other linear rational expectation model

The solutions should match Soederlind's, but I haven't checked it myself. If you do, please, send us the results.

Best wishes

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

state space form

Postby xl » Fri Feb 10, 2006 10:39 am

Hi Michel.

For S
xl
 
Posts: 6
Joined: Sat Feb 04, 2006 11:02 am
Location: Canberra

Postby MichelJuillard » Fri Feb 10, 2006 4:18 pm

I'm attaching two examples

Best

Michel
Attachments
cgg_osr.mod
(812 Bytes) Downloaded 313 times
cgg_olr.mod
(583 Bytes) Downloaded 234 times
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Thanks

Postby xl » Sat Feb 11, 2006 12:58 am

Thanks Michel. It's really great help.
xl
 
Posts: 6
Joined: Sat Feb 04, 2006 11:02 am
Location: Canberra

Postby xl » Sat Feb 11, 2006 4:16 am

Hi Michel,

I tried two examples. For *cgg_osr*, the parameters are first assigned vaules:

[/quote]
gammax0 = 0.299;
gammac0 = 1.58;
gamma_y_ = 16.6667;
gamma_inf_ = 3.308;
[/quote]

Then at the end of program,

[/quote]
osr_params gammax0 gammac0 gamma_y_ gamma_inf_;
[/quote]

which says these four paramters are the ones that we need to find out in the simple rule (expressed in the third equation in this simple model)

How can we assign the values to the optimized parameters first, as they are the ones that we need to find out actually? Do I miss anything there?

Thanks
xl
 
Posts: 6
Joined: Sat Feb 04, 2006 11:02 am
Location: Canberra

Postby MichelJuillard » Sat Feb 11, 2006 6:03 pm

For simple rules, we need to use a numercial optimizer. It is therefore necessary to provide guess values. It happens that I gave some that were very close to the optimal value, for some reason I don't remember now.

However, double-checking the example I discovered a bug in the osr function. I will post a correction as soon as possible

Best

Michel
MichelJuillard
 
Posts: 680
Joined: Thu Nov 18, 2004 10:51 am

Re: computing optimal rules

Postby Alkebulan » Sat Mar 14, 2015 2:29 am

Hey Michel,
I have a quick question: Can osr compute 2 policy rules (monetary and a fiscal rule)?
So far I have only been able to estimate one rule (and I just specify the other one with an ad-hoc Taylor rule) and when I try estimating both at the same time, I get an error message (BK conditions not met). Any insight??
Alkebulan
 
Posts: 13
Joined: Sat Feb 07, 2015 4:51 am

Re: computing optimal rules

Postby jpfeifer » Sun Mar 15, 2015 5:26 pm

This should be possible. It sound like you are trying to start your estimation from invalid parameters. Try initializing the parameters at working values before calling OSR.
------------
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 10 guests