Skip to content
Snippets Groups Projects
Commit 03f93c53 authored by Marco Ratto's avatar Marco Ratto
Browse files

bug fix with steady state when plotting the expand of groups of shocks

parent b0ce054c
Branches
Tags
No related merge requests found
...@@ -470,13 +470,14 @@ switch type ...@@ -470,13 +470,14 @@ switch type
q2a.aux.yss=steady_state_aux; q2a.aux.yss=steady_state_aux;
end end
i_var0 = i_var; i_var0 = i_var;
steady_state_0 = steady_state;
[za, endo_names, endo_names_tex, steady_state, i_var, oo_] = ... [za, endo_names, endo_names_tex, steady_state, i_var, oo_] = ...
annualized_shock_decomposition(z,M_, options_, i_var, t0, options_.nobs, realtime_, vintage_, steady_state,q2a); annualized_shock_decomposition(z,M_, options_, i_var, t0, options_.nobs, realtime_, vintage_, steady_state,q2a);
if options_.plot_shock_decomp.interactive && ~isempty(options_.plot_shock_decomp.use_shock_groups) if options_.plot_shock_decomp.interactive && ~isempty(options_.plot_shock_decomp.use_shock_groups)
mygroup = options_.plot_shock_decomp.use_shock_groups; mygroup = options_.plot_shock_decomp.use_shock_groups;
options_.plot_shock_decomp.use_shock_groups=''; options_.plot_shock_decomp.use_shock_groups='';
zafull = ... zafull = ...
annualized_shock_decomposition(zfull(i_var0,:,:),M_, options_, i_var, t0, options_.nobs, realtime_, vintage_, steady_state,q2a); annualized_shock_decomposition(zfull(i_var0,:,:),M_, options_, i_var, t0, options_.nobs, realtime_, vintage_, steady_state_0(i_var0),q2a);
options_.plot_shock_decomp.use_shock_groups = mygroup; options_.plot_shock_decomp.use_shock_groups = mygroup;
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment