Hi, I am trying to replicate a DSGE model and adding the ZLB binding constraint and I am using Occbin in dynare 5.0. Unfortunately, I get some errors. Could you help me understand the problem?
EA_SW03_rep.mod (11.6 KB)
Thank you
Marco
Hi, I am trying to replicate a DSGE model and adding the ZLB binding constraint and I am using Occbin in dynare 5.0. Unfortunately, I get some errors. Could you help me understand the problem?
EA_SW03_rep.mod (11.6 KB)
Thank you
Marco
The error occurs, because the exogenous variable y_
is not used in the model-block.
Either delete this variable from the varexo;
command or use the nostrict-option.
E.g. dynare EA_SW03_rep nostrict
I always use the nostrict-option! There are other errors!
I cannot replicate the errors! If I call your file with dynare EA_SW03_rep nostrict
under Dynare 5.0, it works.
But you have not added the ZLB binding constraint.
Sorry, the file with ZLB binding constraint is this:
EA_SW03_rep_zlb.mod (11.9 KB)
Your implementation of the ZLB is wrong.
occbin_constraints;
name 'ZLB'; bind interestq<1;
end;
Since you use the linear option in the model block, interestq
is zero in steady state.
But under your implementation the constraint will bind in steady state and you stay in the alternative regime. OccBin requires that the solution returns back to the reference regime in finite time.
Maybe you are looking for something like this:
EA_SW03_rep_zlb.mod (12.2 KB)
ok, thank you very much. Now it is really clear!
bayesian_irf
does not support the occasionally binding constraints. The same applies to stoch_simul
.bind R1N_ZLB <= 0.00125;
seems to hold for the steady state
R1N_ZLB = -0.000889861;
Thank you for your prompt answer. I need some clarifications
occbin_solver
in the simulation context you want (it seems you want a one-time shock).relax
one. But your steady state falls into the bind
-regime.Thank you. Now I am able to run the occbin solver without problems. But that raises an additional question.
After running occbin, oo_.endo_simul is empty. And if I use the occbin_graph command, I only get a straight horizontal line. Is it also due to a wrong setup or is it how my model behaves?
I would need to see the files.
R1N
is not restricted in your model. R1N_ZLB
is the actually restricted variable. It is not allowed to fall below -0.00088987
, which is exactly what happens for the piecewise linear solution.Thanks a lot again. That means my setting was a bit weird.
And yeah I meant simulation for the future behavior of the variables. Is it something that can be done with Occbin?
Or maybe estimates of my bayesian estimation will make sure that the interest rate does not hit the lower bound when I add the forecast option in the estimation command or the forecast command after the estimation command?
No, the forecast
-command cannot accommodate occasionally binding constraints. Do you have a controlled environment in mind? Do you know the value of the state variables when you start forecasting? Or is that the purpose of your estimation?
Thanks for your answer
Any hint about my questions or maybe what I am trying to do is not feasible yet with dynare ?
It should generally be feasible to use one of the smoothers to extract the state variables given the occasionally binding constraints and then run a simulation for different scenarios. Given that OccBin is a rather new feature in Dynare, it may not be as seamless as for other features.
Hello. I will try to implement your suggestion. Thanks a lot for your time.