IRFs not generating for all variables

I am trying to generate IRFs for 3 different types of shocks, to see the effects of each on 9 variables (the 9 variables in var_list). This is specified in the dynareirf.m file. However, for some reason, the effects of the shocks are only shown for 1 variable (piew)- so there are three graphs generated showing the IRFs of 3 different types of shocks, but only for 1/9 of the variables.

I tried to adjust the loop in dynareirf to ensure it would run for 9 variables, but it’s not working.

Any idea what could be wrong in the script so as to not generate for all variables?

Many thanks in advance!

prog copy.zip (706.3 KB)

A common cause is that the shocks to not affect those variables so Dynare does not produce figures for them. You could check whether this is the case.

1 Like

It seems we are moving backwards. I updated your codes several times in the past but these changes are not reflected in the zip file you posted.

I am confused, because I have been incorporating your changes (and hence able to use your help to move forward from the issues!).

So there is something that you had changed that is not reflected and is now affecting the IRFs from being produced? My apologies if so, I’ve been making so many changes to try and make the code run as it should, so with time it’s getting harder to keep track. I believe now it’s just a step away from having all IRFs generated…