# Dynare versus Klein same or not?

**URL:** <https://forum.dynare.org/t/dynare-versus-klein-same-or-not/1560>\
**Category:** Dynare help (legacy posts)\
**Created:** [26 July 2010 18:54 UTC](https://forum.dynare.org/t/dynare-versus-klein-same-or-not/1560 "2010-07-26T18:54:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![petros\_varth](https://forum.dynare.org/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@petros\_varth](https://forum.dynare.org/u/petros_varth)\
**Post date:** [26 July 2010 18:54 UTC](https://forum.dynare.org/t/dynare-versus-klein-same-or-not/1560/1 "2010-07-26T18:54:00Z")

</div>

Hi All,

I solved my model with Dynare and with Klein P.(i think 2000 JEDC) i got different results. Not so much qualitatitatively but for sure quantitatively.  
Which method for LRE models Dynare use? My results should be the same? (In terms of eigenvalues determinacy conditions etc?)

Thanks.

Petros

---

<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:** [28 July 2010 06:07 UTC](https://forum.dynare.org/t/dynare-versus-klein-same-or-not/1560/2 "2010-07-28T06:07:02Z")

</div>

Hi,  
could you be more precise about the differences you mention? Where do they occur, e.g. the eigenvalues, the policy functions etc.? If you mean in the stoch\_simul command, which order of approximation do you use? The Klein code usually uses a first order approximation while Dynare uses second order by default.  
Also note that different solution techniques are known to give different but largely similar results. The difference should not matter quantitatively (see [citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.126.2298&rep=rep1&type=pdf](http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.126.2298&rep=rep1&type=pdf)).

---

<div class="post-metadata">

**Author:** ![petros\_varth](https://forum.dynare.org/letter_avatar_proxy/v4/letter/p/cc9497/32.png) [@petros\_varth](https://forum.dynare.org/u/petros_varth)\
**Post date:** [31 July 2010 12:53 UTC](https://forum.dynare.org/t/dynare-versus-klein-same-or-not/1560/3 "2010-07-31T12:53:10Z")

</div>

Hi,

Thanks a lot for your answer.I will check your reference.Dynare uses Schmitt-Grohe and Uribe method 2004 JEDC.Their code up to a first-order approximation as they mention is very close to Klein. However, when i use Dynare first order i come up with different eigenvalues and policy functions.The most crucial is that i come up also with different critical values for some policy coefficients (i.e. fiscal rules) but may i had made a mistake.I will check it again,and report.Thanks again for your time and the reference.

Petros.

---

<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:** [1 August 2010 13:45 UTC](https://forum.dynare.org/t/dynare-versus-klein-same-or-not/1560/4 "2010-08-01T13:45:41Z")

</div>

Another issue that might give rise to differences it the way Dynare substitutes lags/leads larger than 1 with auxiliary variables. This may make it hard to compare policy functions as some states may appear in a different for, i.e. already plugged in.
