I have a set of log linearized equations.
Within the set of log linearized equations, I am trying to place
i_s_hat = max(0, i_r_hat);
where i_s_hat is a % deviation from steady state savings interest rate
and i_r_hat is a % deviation from steady state reserve interest rate
However, when I use stoch_simul command to output impulse response functions, Dynare ignores i_s_hat in the model block.
If Dynare receives negative value of i_r_hat, I want Dynare to give value of 0 to i_s_hat.
So, I have looked for the answers online. What I found is Occbin Toolkit. Is this a toolkit that is appropriate for this situation?