Impact response plot in Matlab

Hi

My friend and I are working on our thesis. Here, we set up a New Keynesian model with a partially backward-looking NKPC (in dynare). We are trying to create an impact response plot (in Matlab) that shows the impact on output (yhat) from a shock (epsilon_R) to government spending (ghat) and the nominal interest rate (rhat), for different values of omega and theta. When running the code, it says that there is an error in the stoch_simul function. We don’t understand why it isn’t working. Can anyone help?

Thank you in advance!
Basis_model_sim_bagud.mod (1.2 KB)
tau_markup_plot.m (1.2 KB)

In Dynare 5.2 use
tau_markup_plot.m (1.2 KB)

1 Like

@jpfeifer thank you so much!