# Unit root issue

**URL:** <https://forum.dynare.org/t/unit-root-issue/2304>\
**Category:** Dynare help (legacy posts)\
**Created:** [4 January 2012 11:34 UTC](https://forum.dynare.org/t/unit-root-issue/2304 "2012-01-04T11:34:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rteconomics](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@rteconomics](https://forum.dynare.org/u/rteconomics)\
**Post date:** [4 January 2012 11:34 UTC](https://forum.dynare.org/t/unit-root-issue/2304/1 "2012-01-04T11:34:33Z")

</div>

Hello!  
I’m trying to solve the attached model but I have a unit root issue.  
The model is a very standard 2-country open economy endowment model (shocks are specified as news shocks).

The model works fine in the version of complete markets and financial autarky (see attached files, respectively “newsCM” and “newsFA”).  
The problem is with the bond economy (since it introduces a forward-looking variable the BK conditions are not satisfied anymore).

Does anyone know how to deal with this please?  
Many thanks in advance!

RT  
[newscm.txt](https://forum.dynare.org/uploads/default/original/2X/d/d4cc28b4444cc6c8755cb8636c7fee987a035f70.txt) (3.59 KB)  
[newsfa.txt](https://forum.dynare.org/uploads/default/original/2X/1/1bf33db5101e7e6a1bb0b847e8423a5505af7eb3.txt) (3.54 KB)  
[newsbe.txt](https://forum.dynare.org/uploads/default/original/2X/7/748bb145a2f1d828bdd8a0aef6036faeeb14f15e.txt) (3.77 KB)

---

<div class="post-metadata">

**Author:** ![rteconomics](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@rteconomics](https://forum.dynare.org/u/rteconomics)\
**Post date:** [6 January 2012 16:56 UTC](https://forum.dynare.org/t/unit-root-issue/2304/2 "2012-01-06T16:56:06Z")

</div>

Hi guys!  
Sorry to bother again… Any idea on this issue please?  
Thanks,  
R.

---

<div class="post-metadata">

**Author:** ![MelleMa](https://forum.dynare.org/letter_avatar_proxy/v4/letter/m/65b543/32.png) [@MelleMa](https://forum.dynare.org/u/MelleMa)\
**Post date:** [12 January 2012 09:47 UTC](https://forum.dynare.org/t/unit-root-issue/2304/3 "2012-01-12T09:47:27Z")

</div>

Hi!  
Have you read Schmitt-Grohe and Uribe (2003) “Closing small open economy models”? The answer is there.

---

<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:** [12 January 2012 14:04 UTC](https://forum.dynare.org/t/unit-root-issue/2304/4 "2012-01-12T14:04:22Z")

</div>

No, the answer won’t be there as SGU deals with small open economies and the initial post explicitly states that it is a two-country model. Are you sure you obeyed Dynare’s timing convention for predetermined states, i.e. the bonds? See the manual.

---

<div class="post-metadata">

**Author:** ![rteconomics](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/9de0a6/32.png) [@rteconomics](https://forum.dynare.org/u/rteconomics)\
**Post date:** [19 January 2012 16:44 UTC](https://forum.dynare.org/t/unit-root-issue/2304/5 "2012-01-19T16:44:00Z")

</div>

Actually, the code is well specified. In fact it works in the other versions (complete markets and financial autarky).  
Not sure why it doesn’t in a bond economy…

---

<div class="post-metadata">

**Author:** ![reubenpjacob](https://forum.dynare.org/letter_avatar_proxy/v4/letter/r/e5b9ba/32.png) [@reubenpjacob](https://forum.dynare.org/u/reubenpjacob)\
**Post date:** [26 January 2012 10:38 UTC](https://forum.dynare.org/t/unit-root-issue/2304/6 "2012-01-26T10:38:04Z")

</div>

Hi, the unit root problem is present in any bond economy (incomplete markets), irrespective of whether it is an SOE or a 2C model. did you try using a cost function for bond accumulation or an endogenous discount factor?  
reuben
