# Residuals of SS equations in Bayesian estimation

**URL:** <https://forum.dynare.org/t/residuals-of-ss-equations-in-bayesian-estimation/6284>\
**Category:** Steady state\
**Created:** [20 June 2017 21:51 UTC](https://forum.dynare.org/t/residuals-of-ss-equations-in-bayesian-estimation/6284 "2017-06-20T21:51:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zmunkacsi](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/e47774/32.png) [@zmunkacsi](https://forum.dynare.org/u/zmunkacsi)\
**Post date:** [20 June 2017 21:51 UTC](https://forum.dynare.org/t/residuals-of-ss-equations-in-bayesian-estimation/6284/1 "2017-06-20T21:51:02Z")

</div>

Hi,

When running the attached Bayesian estimation file, I receive an error message which shows that several of the residuals of the equations (in the SS) are not zero. For instance, the residuals of equations 42 and 43 are 0.094061.  
However, when I only run the SS file, and save the values of all the variables in equations 42 and 43, the residuals are actually 0 (please see the attached Excel file).  
Any suggestions would be more than welcome!

Thank you,  
Zsuzsa

---

<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:** [21 June 2017 20:20 UTC](https://forum.dynare.org/t/residuals-of-ss-equations-in-bayesian-estimation/6284/2 "2017-06-21T20:20:15Z")

</div>

Please write a proper steady state file that assures that the variables are passed back to Dynare in the correct order. An example is the `NK_baseline_steady_state.m` in the Dynare examples folder

---

<div class="post-metadata">

**Author:** ![zmunkacsi](https://forum.dynare.org/letter_avatar_proxy/v4/letter/z/e47774/32.png) [@zmunkacsi](https://forum.dynare.org/u/zmunkacsi)\
**Post date:** [25 June 2017 20:59 UTC](https://forum.dynare.org/t/residuals-of-ss-equations-in-bayesian-estimation/6284/3 "2017-06-25T20:59:45Z")

</div>

Thanks, I change the order, now it works!
