Fixed bug with new harmonized setting of Smoothed Variables, which contain already steady-state also at the mode without metropolis

time-shift
Marco Ratto 2016-09-12 11:48:52 +02:00
parent 7c5a1d8523
commit dd69e0c751
1 changed files with 2 additions and 2 deletions

View File

@ -162,7 +162,7 @@ for i = 1:length(invars)
end
s = getfield(smoothedvars, invars{i});
j = strmatch(invars{i}, M_.endo_names, 'exact');
v = s((period-M_.maximum_endo_lag+1):period) + steady_state(j);
v = s((period-M_.maximum_endo_lag+1):period);% + steady_state(j);
if ~isfield(opts, 'outfile')
j = strmatch(outvars{i}, M_.endo_names, 'exact');
if isempty(j)
@ -200,7 +200,7 @@ for i = 1:length(M_.aux_vars)
error('The period that you indicated is too small to construct initial conditions')
end
j = M_.aux_vars(i).endo_index;
v = s((period-M_.maximum_endo_lag+1+l):(period+l))+steady_state(j);
v = s((period-M_.maximum_endo_lag+1+l):(period+l)); %+steady_state(j);
if ~isfield(opts, 'outfile')
M_.endo_histval(j, :) = v;
else