Fixed bug.

Growth neutrality correction was applied twice.
time-shift
Stéphane Adjemian(Charybdis) 2018-09-12 15:41:07 +02:00
parent 52b6618bae
commit 6815624a6a
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ while noconvergence
end
end
PACExpectations = PACExpectations+correction;
YDATA = data{M_.endo_names{M_.pac.(pacmodl).lhs_var}}(range).data-correction-PACExpectations;
YDATA = data{M_.endo_names{M_.pac.(pacmodl).lhs_var}}(range).data-PACExpectations;
% Do OLS
params1 = XDATA\YDATA;
r = YDATA-XDATA*params1;