I am trying to plot several IRFs for different values of an underlying model parameter. There are two shocks in my model (technology and government spending). My code (see attached) plots the IRFs for the government spending shock correctly, however for the technology shock it only plots the IRFs for one parameter rather than for all parameters.
RBC_sensitivity.m calls RBC.mod. I would be grateful if someone could provide me an explanation (and fix) for this issue. Thanks in advance!
For me the graphs don’t look identical. The plotted IRF for the technology shock (RBC_sensitivity.m) looks exactly like the IRF for parameter psi=1.1 if I enter it manually in RBC.mod. Furthermore, if I change the parameters manually and call RBC.mod directly, for instance, the IRFs for psi=1.1 and psi=0.75 differ for output.
But for the government shock I definitely obtain three different IRFs as expected.