Page 1 of 2

Blanchard Kahn conditions

PostPosted: Thu Jul 09, 2015 10:09 am
by mhkarami
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

Re: solving Blanchard Kahn conditions

PostPosted: Sat Jul 11, 2015 8:13 am
by jpfeifer
Run model_diagnostics to see that there is still a collinearity issue in your model.

Re: solving Blanchard Kahn conditions

PostPosted: Mon Jul 13, 2015 8:23 am
by mhkarami
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

Re: solving Blanchard Kahn conditions

PostPosted: Mon Jul 13, 2015 10:32 am
by jpfeifer
Find the missing and redundant equations and interchange them.

Re: solving Blanchard Kahn conditions

PostPosted: Mon Jul 13, 2015 3:24 pm
by mhkarami
but I can't find that. I think every thing is ok, but I don't know why I receive this error !! :(

Re: solving Blanchard Kahn conditions

PostPosted: Wed Jul 22, 2015 8:08 am
by 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!

Re: solving Blanchard Kahn conditions

PostPosted: Sun Jul 26, 2015 4:14 pm
by mhkarami
mhkarami wrote: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!

Re: Blanchard Kahn conditions

PostPosted: Mon Jul 27, 2015 6:45 am
by jpfeifer
Please provide the updated codes.

Re: Blanchard Kahn conditions

PostPosted: Mon Jul 27, 2015 1:33 pm
by mhkarami
Dear Johannes,

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

Re: Blanchard Kahn conditions

PostPosted: Tue Jul 28, 2015 7:05 am
by jpfeifer
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.

Re: Blanchard Kahn conditions

PostPosted: Tue Jul 28, 2015 7:25 am
by mhkarami
Dear Johannes
Thank you so much
Best regards

Re: Blanchard Kahn conditions

PostPosted: Tue Jul 28, 2015 8:53 pm
by rdoctors
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!!

Re: Blanchard Kahn conditions

PostPosted: Wed Jul 29, 2015 5:18 am
by jpfeifer
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.

Re: Blanchard Kahn conditions

PostPosted: Wed Jul 29, 2015 12:29 pm
by rdoctors
jpfeifer wrote: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?

Re: Blanchard Kahn conditions

PostPosted: Wed Jul 29, 2015 1:04 pm
by jpfeifer
What is the error message?