# Fixing some endogenous variables to a constant during simulation

**URL:** <https://forum.dynare.org/t/fixing-some-endogenous-variables-to-a-constant-during-simulation/19967>\
**Category:** Stochastic simulations\
**Created:** [15 March 2022 07:23 UTC](https://forum.dynare.org/t/fixing-some-endogenous-variables-to-a-constant-during-simulation/19967 "2022-03-15T07:23:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kofiemma](https://forum.dynare.org/letter_avatar_proxy/v4/letter/k/439d5e/32.png) [@kofiemma](https://forum.dynare.org/u/kofiemma)\
**Post date:** [15 March 2022 07:23 UTC](https://forum.dynare.org/t/fixing-some-endogenous-variables-to-a-constant-during-simulation/19967/1 "2022-03-15T07:23:58Z")

</div>

In this famous paper ( Kaplan, G., Moll, B., & Violante, G. L. (2018). Monetary policy according to HANK. _American Economic Review_, _108_(3), 697-743.), the authors simulate a monetary policy shock…but in the budget constraint of the government (B\_t + G\_t + T\_t = some \; tax \; revenues), they can, for example, fix B\_t and G\_t to a constant and allow only T\_t to adjust after the policy shock.

So if you have in your model:  
`B + G + T = some taxes`

Then you can do, for example, the following?  
`steady_state(B) + steady_state(G) + T = some taxes`

---

<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:** [15 March 2022 07:44 UTC](https://forum.dynare.org/t/fixing-some-endogenous-variables-to-a-constant-during-simulation/19967/2 "2022-03-15T07:44:12Z")

</div>

That will work if the steady state of B and G can be found/determined.
