Multiple IRF with parameter change


I am trying to have in the same plot different IRFs for different parameter values. I have used the code IRF_loop.mod previously posted, but I get the following error message:

??? Undefined function or variable ‘A_e’.

Error in ==> C:\Documents and Settings\Fabrizio Jacobellis\Desktop\Model Simulation 25.02.08\Linear Form (Final Model)\ROC.m
On line 207 ==> z(:,h,j,x) = evalin(‘base’,[deblank(lgy_(h,:)) '’ deblank(lgx(j,:))]);

Error in ==> C:\dynare_v3.065\matlab\dynare.m
On line 42 ==> evalin(‘base’,fname) ;

My model is in linear form.

Can anyone help me on this please?



Personally, I don’t think it is a good idea to set up loop inside a .mod file. Dynare will clear everything in the memory in the first place. If you want to keep something during iteration, save them in a mat file and load it in the mod file.