ZLB deterministic setting

Hi,
I need some advise. I am implementing a negative deterministic shock to the interest rate in order to do some ZLB analysis. Despite the model converges and the rank condition is satisfied, I get this error message.

??? Error using ==> assignin
ASSIGNIN cannot assign to variables with the same name as a MATLAB keyword

Error in ==> dyn2vec at 49
assignin(‘base’,deblank(M_.endo_names(i,:)),oo_.endo_simul(i,k)’);

Error in ==> simul at 100
dyn2vec;

Then, when I look at the simulated series for the nominal interest rate, it turns out that negative values remain so and are not turned to zero. Can someone help me?

thank you in advance!
baseline_code.mod (7.09 KB)

Hi!

Just rename several variables like pi and i. They have another meaning for Matlab.