Page 1 of 1

Multiple IRF with parameter change

PostPosted: Sun Mar 30, 2008 11:26 am
by iacobellisf
Hi

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?

Regards,

Fabrizio

PostPosted: Thu Apr 10, 2008 4:38 am
by bigbigben
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.