# Simult\_ with order=2 causes a problem

**URL:** <https://forum.dynare.org/t/simult--with-order-2-causes-a-problem/6092>\
**Category:** Dynare help (legacy posts)\
**Created:** [23 March 2017 00:38 UTC](https://forum.dynare.org/t/simult--with-order-2-causes-a-problem/6092 "2017-03-23T00:38:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![leolee](https://forum.dynare.org/letter_avatar_proxy/v4/letter/l/f07891/32.png) [@leolee](https://forum.dynare.org/u/leolee)\
**Post date:** [24 March 2017 00:56 UTC](https://forum.dynare.org/t/simult--with-order-2-causes-a-problem/6092/3 "2017-03-24T00:56:30Z")

</div>

[quote=“jpfeifer”]Dear Leo,  
this is a by now well-known property. The simulation you describe causes the system to transition to the stochastic steady state. See [[Simult\_ and nonzero IRFs in higher-order approximations](https://forum.dynare.org/t/simult--and-nonzero-irfs-in-higher-order-approximations/4523/1))[/quote]

Thank you prof. Pfeifer,

Can I make one more following question? I read the thread you mentioned. If I understand correctly, I should use “stochastic steady state” if I’d like to simulate my model or calculate IRFs using simult\_.

Following code is how I simulated my model for 25,000 periods using simult\_ and order=2 using “stochastic steady state”. Am I doing right?

```auto
ex_ = zeros(1000,5); y0=oo_.dr.ys; dr=oo_.dr; iorder=2;
y_=simult_(y0, dr, ex_, iorder);
% This block is used to get stochastic steady state

ee = randn(25000,5); stdev = M_.params(29:33);
ex_ = ee * diag(stdev); dr=oo_.dr; iorder=2; y0 = y_(:,1000);
y_=simult_(y0, dr, ex_, iorder);
```

Best,  
Leo

---

_[View the full topic](https://forum.dynare.org/t/simult--with-order-2-causes-a-problem/6092)._
