# Seek help

**URL:** <https://forum.dynare.org/t/seek-help/2278>\
**Category:** Dynare help (legacy posts)\
**Created:** [10 December 2011 04:20 UTC](https://forum.dynare.org/t/seek-help/2278 "2011-12-10T04:20:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Davka](https://forum.dynare.org/letter_avatar_proxy/v4/letter/d/439d5e/32.png) [@Davka](https://forum.dynare.org/u/Davka)\
**Post date:** [10 December 2011 04:20 UTC](https://forum.dynare.org/t/seek-help/2278/1 "2011-12-10T04:20:13Z")

</div>

Dear all

I have faced a problem. I took a mod from this forum, more specifically [Matrix close to singular or badly scaled](https://forum.dynare.org/t/matrix-close-to-singular-or-badly-scaled/1829/1), Boja\_SOENK.mod which is quite workable. Then I checked the mod against the original paper and found two small mistakes in the mod. What I found were following.

In the original Boja mod(line 104), mc\_h = (sig/(1-h))_(c-h_c(-1))+vphi_l-z\_h\*\*+\*gam2(1-gam1)v+gam1mu;  
I changed it to mc\_h = (sig/(1-h))_(c-h_c(-1))+vphi_l-z\_h\*\*-\*_gam2_(1-gam1)_v+gam1_mu;, (only sign before gam2) following appendix 5, equation 5.8, original paper.

In the original Boja mod(line 142), q = psi\*\*+**(1-gam2\*(1-gam1))_v-gam1_mu;  
I changed it to q = psi**-\*\*(1-gam2\*(1-gam1))_v-gam1_mu; (only sign after psi), following appendix 5, equation 5.19, original paper.

After these correction, Dynare gives an error, saying that

There are 4 eigenvalue(s) larger than 1 in modulus  
for 5 forward-looking variable(s)

The rank conditions ISN’T verified!

??? Error using ==\> print\_info at 42  
Blanchard Kahn conditions are not satisfied: indeterminacy

Error in ==\> stoch\_simul at 71  
print\_info(info, options\_.noprint);

Error in ==\> Boja\_SOENK at 346  
info = stoch\_simul(var\_list\_);

Error in ==\> dynare at 120  
evalin(‘base’,fname) ;

It seems that the first correction doesn’t have any effect. But the second one changes everything when I make the corrections one by one.  
Help help me out here. Thank you in advice.

Please find necessary files attached.  
[Paper.pdf](https://forum.dynare.org/uploads/default/original/2X/6/6e4d529683899fcc31cfc3b81852fe40408d890f.pdf) (381 KB)  
[dj.mod](https://forum.dynare.org/uploads/default/original/2X/b/b6feffa3764078cfa974cdaf6e0f47a8b44edbac.mod) (4.56 KB)  
[Original\_Boja.mod](https://forum.dynare.org/uploads/default/original/1X/def689b6fd1601cab9cc23861147dd7c98c8b374.mod) (4.57 KB)
