Page 1 of 1

Blanchard Kahn conditions

PostPosted: Wed Jan 18, 2012 11:13 am
by wanghao19820707
Dear all:
I try the code in 4.2.4 and the error message is as following and by the way the steady state values are calculated by other software so the outcome of steady is same as intial value because Dynare's calculation is very sensitive to the intial value and the outcome is different every time I run the code(when I do not set the intial values same as outcomes):
Also,I try many different combinations of values of prior parameters setting as recommended in previous related topics but seems still does not work.
Does this mean that there is some fundmental error with my model setting ?

Thank you all for potential suggestions !


Error in computing likelihood for initial parameter values
??? Error using ==> print_info at 39
Blanchard Kahn conditions are not satisfied: no stable equilibrium

Error in ==> initial_estimation_checks at 101
print_info(info, options_.noprint)

Error in ==> dynare_estimation_1 at 122
initial_estimation_checks(xparam1,gend,data,data_index,number_of_observations,no_more_missing_observations);

Error in ==> dynare_estimation at 62
dynare_estimation_1(var_list,varargin{:});

Error in ==> rbc at 203
dynare_estimation(var_list_);

Error in ==> dynare at 120
evalin('base',fname) ;

Re: Blanchard Kahn conditions

PostPosted: Wed Jan 18, 2012 1:00 pm
by jpfeifer
Your model contains a unit root. Set
Code: Select all
lik_init=2

in the estimation command.

Re: Blanchard Kahn conditions

PostPosted: Wed Jan 18, 2012 2:54 pm
by wanghao19820707
jpfeifer wrote:Your model contains a unit root. Set
Code: Select all
lik_init=2

in the estimation command.



Dear Professor:
Thank you very much.
But there is new problem now:
SOLVE: Iteration 9(and 10,12 18 and so on)
Spurious convergence.
2.5504
5.1003
1.2188
0.2797
0
0
-0.1014
-130.9893
0
0
0
0
0
0
0


SOLVE: maxit has been reached

SOLVE: maxit has been reached

SOLVE: maxit has been reached

...

and in the small window"turning of the scale parameter" shows that acceptance rates is always 0.0000000

what does this mean (problem with steady state or estimation)? Thanks in advance!

Re: Blanchard Kahn conditions

PostPosted: Wed Jan 18, 2012 3:15 pm
by jpfeifer
It means that Dynare was able to compute the steady state for the initial parameters but cannot compute it for the new parameters in the MCMC draws during estimation. You might need to provide an analytical steady state in the initval block or a separate steady state file.

Re: Blanchard Kahn conditions

PostPosted: Wed Jan 18, 2012 3:20 pm
by wanghao19820707
jpfeifer wrote:It means that Dynare was able to compute the steady state for the initial parameters but cannot compute it for the new parameters in the MCMC draws during estimation. You might need to provide an analytical steady state in the initval block or a separate steady state file.



Dear Professor:
Thank you very much for your kindly help.I will try what you suggest.

Re: Blanchard Kahn conditions

PostPosted: Thu Feb 09, 2012 1:05 pm
by wanghao19820707
Dear Professor:
I try to write a matlab program to calculate the steady state in a separated file (since there is no analytical solutions) but now there is new error message.Whay should I do ?


??? Error using ==> feval
Attempt to execute SCRIPT rbc_steadystate as a function:
C:\dynare\4.2.4\matlab\code\rbc_steadystate.m

Error in ==> steady_ at 50
[ys,check] = feval([M_.fname '_steadystate'],...

Error in ==> steady at 54
steady_;

Error in ==> rbc at 170
steady;

Error in ==> dynare at 120
evalin('base',fname) ;