From 71fa8cac9fb1ce84ccfcfc6224e11fbbd16e2574 Mon Sep 17 00:00:00 2001 From: Marco Ratto Date: Tue, 2 Jul 2019 10:17:35 +0200 Subject: [PATCH] fixed bug with steady state of annualized variables requiring auxiliary while doing expand --- matlab/plot_shock_decomposition.m | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/matlab/plot_shock_decomposition.m b/matlab/plot_shock_decomposition.m index e717e16a6..aac812b38 100644 --- a/matlab/plot_shock_decomposition.m +++ b/matlab/plot_shock_decomposition.m @@ -325,6 +325,11 @@ if options_.plot_shock_decomp.use_shock_groups M_.endo_names_tex = endo_names_tex; else % here we know we only have one variable to handle + if isstruct(q2a.aux) && ischar(q2a.aux.y) + steady_state_aux = get_mean(q2a.aux.y); + q2a.aux.y=repmat(steady_state_aux,16,1); + q2a.aux.yss=steady_state_aux; + end [~, yssa, ~, gyssa] = ... quarterly2annual(repmat(steady_state,16,1),steady_state,q2a.GYTREND0,q2a.type,q2a.islog,q2a.aux); if q2a.plot==1