# Simulating an exogeneous change in an exogenous variable

**URL:** <https://forum.dynare.org/t/simulating-an-exogeneous-change-in-an-exogenous-variable/26043>\
**Category:** Stochastic simulations\
**Created:** [2 July 2024 06:47 UTC](https://forum.dynare.org/t/simulating-an-exogeneous-change-in-an-exogenous-variable/26043 "2024-07-02T06:47:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [2 July 2024 07:05 UTC](https://forum.dynare.org/t/simulating-an-exogeneous-change-in-an-exogenous-variable/26043/2 "2024-07-02T07:05:10Z")

</div>

> [@Two shocks simultaneously in a model](https://forum.dynare.org/t/two-shocks-simultaneously-in-a-model/5665/2):
>
> If you are working with a linearized model (order=1), the IRF to a joint shock is the sum of the individual IRFs. That way you can create any linear combination. If you want to do this more formally, you can use the simult\_-function to generate any combination you like (even at higher order). See [github.com/JohannesPfeifer/DSGE\_mod/blob/master/RBC\_news\_shock\_model/RBC\_news\_shock\_model.mod](https://github.com/JohannesPfeifer/DSGE_mod/blob/master/RBC_news_shock_model/RBC_news_shock_model.mod) for an example

may contain the answer.

---

_[View the full topic](https://forum.dynare.org/t/simulating-an-exogeneous-change-in-an-exogenous-variable/26043)._
