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

fixed bug with steady state of annualized variables requiring auxiliary while doing expand

parent ac511ca7
Branches
Tags
1 merge request!1655utilities + plot shock decompositions + init condition decompositions
...@@ -325,6 +325,11 @@ if options_.plot_shock_decomp.use_shock_groups ...@@ -325,6 +325,11 @@ if options_.plot_shock_decomp.use_shock_groups
M_.endo_names_tex = endo_names_tex; M_.endo_names_tex = endo_names_tex;
else else
% here we know we only have one variable to handle % 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] = ... [~, yssa, ~, gyssa] = ...
quarterly2annual(repmat(steady_state,16,1),steady_state,q2a.GYTREND0,q2a.type,q2a.islog,q2a.aux); quarterly2annual(repmat(steady_state,16,1),steady_state,q2a.GYTREND0,q2a.type,q2a.islog,q2a.aux);
if q2a.plot==1 if q2a.plot==1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment