Many thanks for you reply Prof. Pfeifer
run and run_1 have the same code in them but apply to two different scenarios. As these two files are currently set up, they run the same mod file, under two different names transition.mod and transition_1.mod because I thought this might help.
run refers to the scenario where pmrI = 1; fcI = 0; ubI = 0; while run_1 is set to pmrI = 1; fcI = 1; ubI = 0;. I want to generate irfs for the set of variables in the transition.mod file under these two scenarios in the same graph for each variable.
I am not sure whether it is necessary to name the files differently. I got to this stage because I tried running the single run file twice but under the two different scenarios and saving the simulation results in oo_.endo_simul as irf1 and irf2 respectively but irf2 would just replace irf1 in my folder so I thought I should try to name the files differently, but this doesn’t seem to have worked.
I attach the other files you would need in a zip file. You would only need to run the run.m and run.1 files to see the irfs I am trying to merge ( Alternatively, you can stick with running the run file but changing fcI from 0 to 1).
The mult_irf file was just my initial attempt to start writing a code that would merge the results.
model_simulations.zip (26.7 KB)