Recovering oo_.dr.ghx in third-order approximation

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.

Recovering oo_.dr.ghx in third-order approximation

Postby amg » Fri Oct 28, 2011 8:33 am

Dear all,

In a third order approximation, the first-order terms of the decision rule are corrected for uncertainty. I.e., oo_.dr.g_1=[oo_.dr.ghx, oo_.dr.ghu]+1/2[oo_.dr.ghs2x,oo_.dr.ghs2u]. Yet Dynare sets (see line 54 and 55 of k_order_pert.m) [oo_.dr.ghx, oo_.dr.ghu]=oo_.dr.g_1, meaning I can't recover the uncertainty corrections oo_.dr.ghs2x and oo_.dr.ghs2u individually. Is there anyway to do this? E.g., is it possible to recover the original, certainty equivalent (i.e. as would result from setting order=1) first-order terms when running a third-order approximation?

Thanks in advance!

P.S. Obviously, I could run Dynare twice, setting order=1 and then order=3, but this is prohibitive with anything iterative and, anyway, shouldn't be necessary as the certainty equivalent QZ decomposition must be calculated in a higher-order perturbation, too...
amg
 
Posts: 7
Joined: Fri Oct 28, 2011 8:10 am

Re: Recovering oo_.dr.ghx in third-order approximation

Postby SébastienVillemot » Fri Nov 18, 2011 9:44 am

Hi,

The uncertainty correction is incorporated into oo_.dr.g_0, not oo_.dr.g_1!

See the reference manual, section about stoch_simul, for details.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France

Re: Recovering oo_.dr.ghx in third-order approximation

Postby jpfeifer » Fri Nov 18, 2011 10:26 pm

Dear Sébastien,

this is not completely true and has been discussed in http://www.dynare.org/phpBB3/viewtopic.php?f=1&t=2754. The uncertainty corrections at second order result from the second partial derivative of the policy function w.r.t. the perturbation parameter. This term is saved into g_0 as it does not depend on the state variable. However, at third order, you get an additional term from differentiating twice w.r.t. to the perturbation parameter and once w.r.t. the state variables. This term, which only appears at third order is then added by Dynare to g_1 as it is linear in the state variable. Similary, if you would use Dynare++ to go to fourth order, there is a correction term added to g_2 (of course in addition to the lower order correction terms already contained in g_0 and g_1).

Back to the original question, I am not aware of a way to trace out this correction term without running Dynare twice at different orders and computing the difference.
------------
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: Recovering oo_.dr.ghx in third-order approximation

Postby SébastienVillemot » Fri Nov 25, 2011 11:19 am

Thanks for pointing to this previous thread.

I think this is largely a matter of terminology: what we call the "uncertainty correction" is not rigorously defined.

Best,
Sébastien Villemot
Economist at OFCE – Sciences Po
SébastienVillemot
 
Posts: 706
Joined: Fri Dec 07, 2007 2:29 pm
Location: Paris, France


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 13 guests