# Retrieving coefficients of the policy functions

**URL:** <https://forum.dynare.org/t/retrieving-coefficients-of-the-policy-functions/379>\
**Category:** Dynare help (legacy posts)\
**Created:** [29 June 2007 01:19 UTC](https://forum.dynare.org/t/retrieving-coefficients-of-the-policy-functions/379 "2007-06-29T01:19:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nsouzas](https://forum.dynare.org/letter_avatar_proxy/v4/letter/n/4bbf92/32.png) [@nsouzas](https://forum.dynare.org/u/nsouzas)\
**Post date:** [29 June 2007 01:19 UTC](https://forum.dynare.org/t/retrieving-coefficients-of-the-policy-functions/379/1 "2007-06-29T01:19:56Z")

</div>

HOW DO I RETRIEVE THE COEFFICIENTS OF THE POLICY FUNCTIONS INSIDE MY MOD FILE FOR LATER USE?

THANKS

---

<div class="post-metadata">

**Author:** ![tarikz](https://forum.dynare.org/letter_avatar_proxy/v4/letter/t/b77776/32.png) [@tarikz](https://forum.dynare.org/u/tarikz)\
**Post date:** [8 July 2007 18:39 UTC](https://forum.dynare.org/t/retrieving-coefficients-of-the-policy-functions/379/2 "2007-07-08T18:39:32Z")

</div>

The coefficients of the policy and transition functions are stored in:  
oo\_.dr.ghx  
oo\_.dr.ghu

[quote=“nsouzas”]HOW DO I RETRIEVE THE COEFFICIENTS OF THE POLICY FUNCTIONS INSIDE MY MOD FILE FOR LATER USE?

THANKS[/quote]

---

<div class="post-metadata">

**Author:** ![shwayder](https://forum.dynare.org/letter_avatar_proxy/v4/letter/s/46a35a/32.png) [@shwayder](https://forum.dynare.org/u/shwayder)\
**Post date:** [21 May 2008 00:02 UTC](https://forum.dynare.org/t/retrieving-coefficients-of-the-policy-functions/379/3 "2008-05-21T00:02:54Z")

</div>

In case anyone stumbles across this as I did (googling for a way to find the policy and transition matrix) the method listed above no longer works.

dr and dh are not stored in oo\_, they are their own matrices now.

So dr\_.ghx gives you the transition matrix coefficients on the varibales.  
dr\_.ghu gives you the coefficients on the shocks.

Cheers,  
AS

---

<div class="post-metadata">

**Author:** ![stepan-a](https://forum.dynare.org/user_avatar/forum.dynare.org/stepan-a/32/6652_2.png) [@stepan-a](https://forum.dynare.org/u/stepan-a)\
**Post date:** [21 May 2008 07:16 UTC](https://forum.dynare.org/t/retrieving-coefficients-of-the-policy-functions/379/4 "2008-05-21T07:16:59Z")

</div>

No.

With dynare version 4 policy rules are stored in oo\_.dr.ghx and oo\_.dr.ghu, but with dynare version 3 policy rules are stored in dr\_.ghx and dr.ghu.

Best,  
Stéphane.

---

<div class="post-metadata">

**Author:** ![agupta28](https://forum.dynare.org/letter_avatar_proxy/v4/letter/a/c77e96/32.png) [@agupta28](https://forum.dynare.org/u/agupta28)\
**Post date:** [22 February 2009 20:45 UTC](https://forum.dynare.org/t/retrieving-coefficients-of-the-policy-functions/379/5 "2009-02-22T20:45:41Z")

</div>

dr\_.ghx gives the AR(1) coefficients of the policy rule. what if the model has AR(2) coefficients. where are they saved??

thanks,

abhishek
