Harmonize plotting of IRFS

In stoch_simul.m IRFs were only printed if they were not flat instead of checking whether the IRF is different from 0. Unit root responses were thus filtered out, e.g. C=0.2 for all t was not displayed.
time-shift
Johannes Pfeifer 2013-12-05 17:46:38 +01:00
parent f640912878
commit c9ebe21faf
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ if options_.irf
y(i_var(j),:)');
eval(['oo_.irfs.' deblank(M_.endo_names(i_var(j),:)) '_' ...
deblank(M_.exo_names(i,:)) ' = y(i_var(j),:);']);
if max(y(i_var(j),:)) - min(y(i_var(j),:)) > options_.impulse_responses.plot_threshold
if max(abs(y(i_var(j),:))) > options_.impulse_responses.plot_threshold
irfs = cat(1,irfs,y(i_var(j),:));
if isempty(mylist)
mylist = deblank(var_list(j,:));