# Use data to do simulation

**URL:** <https://forum.dynare.org/t/use-data-to-do-simulation/5195>\
**Category:** Dynare help (legacy posts)\
**Created:** [25 December 2015 06:52 UTC](https://forum.dynare.org/t/use-data-to-do-simulation/5195 "2015-12-25T06:52:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwu](https://forum.dynare.org/letter_avatar_proxy/v4/letter/j/bcef8e/32.png) [@jwu](https://forum.dynare.org/u/jwu)\
**Post date:** [25 December 2015 06:52 UTC](https://forum.dynare.org/t/use-data-to-do-simulation/5195/1 "2015-12-25T06:52:53Z")

</div>

Hi:

Recently I am using Dynare to replicate Michaillat (2012), “Do Matching Frictions Explain Unemployment? Not in Bad Times”.

In the section IV. D. of Michaillat (2012), he firstly constructed the technology shock by Solow residual ( ln a\_t = ln y\_t - alpha\*ln n\_t ).

Then he further used the technology shock constructed from data to get simulated unemployment rate.

Because the shock is constructed by real data, therefore, he can compare model simulated unemployment and real unemployment.

May I know, in dynare, is there any option that we use the shock constructed from real data and get the simulated data we are interested in?

Best regards.

jwu

---

<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:** [26 December 2015 10:26 UTC](https://forum.dynare.org/t/use-data-to-do-simulation/5195/2 "2015-12-26T10:26:20Z")

</div>

This must be done via the simult\_-command. There are various examples, e.g. [[Choosing initial values for simult\_](https://forum.dynare.org/t/choosing-initial-values-for-simult-/2359/1)) or [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)
