Blanchard Kahn conditions

Dear professor jpfeifer:
When I run pass_through_two_two.mod file in dynare, there is a trouble I don’t know how to solve it. The
error information coming up with the following message:
There are 3 eigenvalue(s) larger than 1 in modulus
for 4 forward-looking variable(s)

The rank condition ISN’T verified!

STEADY-STATE RESULTS:

c 0
r 0
pi 0
n 0
w 0
m 0
y 0
a 0
g 0
mc 0
gama_H 0
pi_H 0
pi_F 0
psi_F 0
s 0
q 0
epsilon 0
pistar 0
dc 0
fr 0
gamastar_H 0
pistar_o 0
gamastar_o 0
o 0
gama_F 0
c_F 0
c_H 0
cstar_H 0
ystar 0
Error using print_info (line 45)
Blanchard Kahn conditions are not satisfied:
indeterminacy

Error in stoch_simul (line 98)
print_info(info, options_.noprint,
options_);

Error in pass_through_two_two (line 459)
info = stoch_simul(var_list_);

Error in dynare (line 180)
evalin(‘base’,fname) ;


please guide me

Run model_diagnostics to see that there is still a collinearity issue in your model.

Dear professor jpfeifer:
Thank you very much for your help!Under the guidance of you, I did it and I received the following message:

model_diagnostics(M_,options_,oo_)
model_diagnostic: the Jacobian of the static model is singular
there is 3 colinear relationships between the variables and the equations
Relation 1
Colinear variables:
n
w
y
gama_H
s
q
dc
fr
gamastar_H
gamastar_o
gama_F
c_F
c_H
cstar_H
Relation 2
Colinear variables:
n
w
y
gama_H
s
q
dc
fr
gamastar_H
gamastar_o
gama_F
c_F
c_H
cstar_H
Relation 3
Colinear variables:
n
w
y
gama_H
s
q
dc
fr
gamastar_H
gamastar_o
gama_F
c_F
c_H
cstar_H
Relation 1
Colinear equations
7 10 12 20

Relation 2
Colinear equations
15 18 19

Relation 3
Colinear equations
7 10 12 20

The presence of a singularity problem typically indicates that there is one
redundant equation entered in the model block, while another non-redundant equation
is missing. The problem often derives from Walras Law.

what should I do now, please help me

Find the missing and redundant equations and interchange them.

but I can’t find that. I think every thing is ok, but I don’t know why I receive this error !! :frowning:

Dear professor jpfeifer:
I noticed that one of my equations was incorrect and I corrected it (I used positive instead of negative in one of my equations) , after that my Blanchard Kan error disappeared and I could run my code and received outputs. But still when I use the command that u introduced me “model_diagnostics(M_,options_,oo_)” I receive this:
Relation 1
Colinear equations
7 10 12 20

Relation 2
Colinear equations
7 10 12 20

Relation 3
Colinear equations
15 18 19

Relation 4
Colinear equations
29 30

The presence of a singularity problem typically indicates that there is one
redundant equation entered in the model block, while another non-redundant equation
is missing. The problem often derives from Walras Law.

Do u think my model still has problem or my problem has solved?
Any advice will be appreciated.

Thank you so much!

[quote=“mhkarami”]Dear professor jpfeifer:
I noticed that one of my equations was incorrect and I corrected it (I used positive instead of negative in one of my equations) , after that my Blanchard Kan error disappeared and I could run my code and received outputs. But still when I use the command that u introduced me “model_diagnostics(M_,options_,oo_)” I receive this:
Relation 1
Colinear equations
7 10 12 20

Relation 2
Colinear equations
7 10 12 20

Relation 3
Colinear equations
15 18 19

Relation 4
Colinear equations
29 30

The presence of a singularity problem typically indicates that there is one
redundant equation entered in the model block, while another non-redundant equation
is missing. The problem often derives from Walras Law.

Do u think my model still has problem or my problem has solved?
Any advice will be appreciated.

Thank you so much![/quote]

Please provide the updated codes.

Dear Johannes,

Thank you for your answer.
I will email them for you

Your model now has a bunch of unit roots that give rise the warning about collinearity. If the unit roots are desired, your model is fine now.

Dear Johannes
Thank you so much
Best regards

Hello, I’m new to dynare and I’m having troubles with my model. I’m trying to replicate the SAMBA (2011 version), which is the Brazilian central Bank model. My dynare version is 4.4.3.
It is giving these errors : Blanchard Kahn conditions are not satisfied: indeterminacy

and : There are 22 eigenvalue(s) larger than 1 in modulus
for 28 forward-looking variable(s)

I’ve used the model_diagnostics(M_,options_,oo_) command but now it is not working. Does someone now why it isn’t working? (it just doesn’t do it).

Does anyone now how I could solve this problem???

Thank you!!

Given the difference in roots, there seems to be a fundamental timing problem. Check your predetermined states whether you assigned the correct timing. See the manual for details.

thank you for your reply! But do you have any guesses of why the model_diagnostics(M_,options_,oo_) command is not working?

What is the error message?

There isn’t an error message…it just doesn’t do anything which I find wierd, since last time I used it, it worked! However, I managed to run my script! I had to change a few equations (monetary policy rule and reduce the government debt coefficient).

I do have another question. Do you know how I can see all endogenous, exogenous and parameters that were created in “my” model? (without looking to the script).

Thank you once again!

If model_diagnostics is silent, no obvious error has been found.

Regarding your new question: their names are stored in
M_.endo_names
M_.exo_names
M_.param_names

Hi, did you get to run the code?

Dear professor jpfeifer:
there is a same trouble to me. So how can i run model_diagnostics?
please guide me
best wishes!

Add model_diagnostics; to your mod-file before the statement where the crash happens. Alternatively, after the crash, run

model_diagnostics(M_,options_,oo_)

in Matlab’s command window.