IRIS-Solutions-Team / IRIS-Toolbox

[IrisToolbox] for Macroeconomic Modeling
Other
92 stars 42 forks source link

Error using shockplot() #378

Open kbandesz opened 1 year ago

kbandesz commented 1 year ago

Hi,

I am trying to run some old code with Release-20230405. Running the segment below (uncommenting one of the first two lines), I get error messages with the shockplot function.

%range=1:20;
%range=qq(0,1):qq(4,4);
impulse_response_variables={'l_y_gap','i','dl_cpi','d4l_cpi','dl_s','l_z_gap','r_gap','mci','rmc'};
shockplot(m,'shock_l_y_gap',range,impulse_response_variables);`

If I use the first definition of range, I get this:


Unrecognized field name "EvalTrends".

Error in model/shockplot (line 118)
    'EvalTrends', opt.EvalTrends, ...

If I use the second definition of rangeas a time series, I get this:


Error using model/shockplot (line 115)
[IrisToolbox] Error
*** Cannot reference INTEGER dates when assigning to QUARTERLY time series

The first one may be a legacy issue, as I know the EvalTrends option was called DTrends or something like this before.

Thank you, Andras