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?