# Policy Function Order

**URL:** <https://forum.dynare.org/t/policy-function-order/4908>\
**Category:** Dynare help (legacy posts)\
**Created:** [13 August 2015 16:30 UTC](https://forum.dynare.org/t/policy-function-order/4908 "2015-08-13T16:30:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjs19](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/59ef9b/32.png) [@mjs19](https://forum.dynare.org/u/mjs19)\
**Post date:** [13 August 2015 16:30 UTC](https://forum.dynare.org/t/policy-function-order/4908/1 "2015-08-13T16:30:12Z")

</div>

Hi,  
I am aware that policy and transition functions are stores in oo\_.dr.ghx and oo.dr.ghu. However, the coefficients order (I mean, which number corresponds to which state) is confusing and is presented in a different manner than what appears in dynare’s output when running the mod file.  
I can see that the coefficients are the same, but when I have two columns/lines with zeros on it, I don’t know which variable that column/line is referring to. Is it always kept fix? How can I discover the ordering of states that Dynare uses? This is important for me since I may want to run loops and etc with dynare simulations in it, extracting policy functions and etc…  
Thanks.

---

<div class="post-metadata">

**Author:** ![jpfeifer](https://forum.dynare.org/user_avatar/forum.dynare.org/jpfeifer/32/5044_2.png) [@jpfeifer](https://forum.dynare.org/u/jpfeifer)\
**Post date:** [13 August 2015 17:22 UTC](https://forum.dynare.org/t/policy-function-order/4908/2 "2015-08-13T17:22:09Z")

</div>

The ordering of decision rules is explained in the manual.
