I really hope someone is able to help or offer some advice.
I have a two-country DSGE model with QE (from Alpanda & Kabaca (2020) augmented with an occasionally binding constraint on the interest rate (using occbin). I now want to calibrate the model parameters (starting with just the shock parameters and persistence) but I am unsure of how to do so when I have used Occbin in the simulated model.
I have the code for the bayesian estimation of the linear model. When simply defining the two rules, and writing the ‘occbin_constraints’ block, dynare preprocessing fails (code attached). I am aware that occbin is meant for simulation and not estimation but after it was included in dynare 5.0, I was hoping there was some shortcut to estimating a model using the toolbox.
Thank you very much for the quick reply professor Pfeifer. I have tried to follow the examples but the Blanchard-Kahn conditions are not satisfied. When simulating the original model, I encounter no problems, so I am unsure what I am doing wrong. I am not very familiar with bayesian estimation.
Also I wish to only estimate the shock persistence and shock std. deviations and I am thus told: “The posterior mode file QEspillover_estimation_v1_new_mode has been generated using another specification of the model or another model! Your mode file contains estimates for 86 parameters, while you are attempting to estimate only 43 parameters”
However, I don’t know how to read and edit the _mode file and whether it is even a true problem.
I really hope you can help. I have attached my mod file and the data and data transformation .m file
Dear Johannes @jpfeifer , when I replicate this file, I encounter the below error. How can I deal with the problem ? Best Regards, Yusuf
Undefined variable “occbin” or class “occbin.plot_regimes”.
Error in NKM.driver (line 457)
occbin.plot_regimes(oo_.occbin.smoother.regime_history,M_,options_)
Error in dynare (line 281)
evalin(‘base’,[fname ‘.driver’]);