Stochastic shocks in some periods- Iacoviello 2015

Dear Professor Jpfeifer,
Thank you for the hint. So far I checked, apparently it was fixed.
I am sorry for lots of question I have. I attach my all files here. The problem is still

[quote]Error using chol
Matrix must be positive definite.[/quote]

and the fact dynare cannot find the steady state. I provide an external steady state file, and as I checked manually, for a wide range of parameters it is able to compute the steady state perfectly. I guessed that the problem is my initial parameters value, so as you commented on [The initial value of the likelihood is complex) I used estimated_params_init(use_calibration); end;
but still the problem runs.
I checked the eigenvalues and there is no unit one,however there is an eigenvalue=1.003, so I use diffuse_filter but still nothing is fixed.
I was wondering if there is a solution for this problem?

Ps: Once I ran the codes with mode_compute=6 then I put the posterior mean as the prior mean of the parameters for a new computing with mode_compute=4
Sincerely,
Leo
Credit_crunch.zip (23.9 KB)