From c9ebe21fafad941aa53dc3da42a23525f2d8b77e Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Thu, 5 Dec 2013 17:46:38 +0100 Subject: [PATCH] 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. --- matlab/stoch_simul.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matlab/stoch_simul.m b/matlab/stoch_simul.m index b58dcbcd6..b2f9bd890 100644 --- a/matlab/stoch_simul.m +++ b/matlab/stoch_simul.m @@ -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,:));