# Extracting ghu, ghx

**URL:** <https://forum.dynare.org/t/extracting-ghu-ghx/2273>\
**Category:** Dynare help (legacy posts)\
**Created:** [6 December 2011 20:08 UTC](https://forum.dynare.org/t/extracting-ghu-ghx/2273 "2011-12-06T20:08:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjohnston](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/bc8723/32.png) [@mjohnston](https://forum.dynare.org/u/mjohnston)\
**Post date:** [6 December 2011 20:08 UTC](https://forum.dynare.org/t/extracting-ghu-ghx/2273/1 "2011-12-06T20:08:39Z")

</div>

I have a simple New Keynesian model with a price level targeting rule (mod file attached). I have code which solves the model through Dynare, and then loads the results file so that I can use the oo\_.dr.ghu and oo\_.dr.ghx matrices to perform a simulation.

With the policy rule written as it currently is in the file,

nomR = rho\_r\*nomR(-1) + (1-rho\_r)_gam_P(+4) + v ;

things are fine. I can extract the ghu and ghx matrices as described in the documentation. Suppose I change the rule so that it responds to expected inflation 8 periods out instead of 4:

nomR = rho\_r\*nomR(-1) + (1-rho\_r)_gam_P(+8) + v ;

In this case the ghu and ghx matrices are gone from the results file. Defining auxiliary variables manually does not resolve things either.

Any clues to this mystery? How can I get the ghu and ghx matrices for the latter case?  
[simple\_PLT.mod](https://forum.dynare.org/uploads/default/original/2X/2/27fa912f5b4bc5af9cf7e189cbd645e4537d954f.mod) (756 Bytes)

---

<div class="post-metadata">

**Author:** ![sebastien](https://forum.dynare.org/user_avatar/forum.dynare.org/sebastien/32/19973_2.png) [@sebastien](https://forum.dynare.org/u/sebastien)\
**Post date:** [21 December 2011 16:29 UTC](https://forum.dynare.org/t/extracting-ghu-ghx/2273/2 "2011-12-21T16:29:41Z")

</div>

I cannot replicate your problem because you did not post “simple\_parameters.mod”.

By the way, are you using the latest version of Dynare (4.2.4)?

Best,
