Fixed subsample periods for exogenous variables.
Model inversion routine was returning wrong results when the periods in constrainedpaths where not aligned with the periods in exogenousvariables.time-shift
parent
c2556cc80e
commit
d0071bd80b
|
@ -98,7 +98,7 @@ for i=1:nyctrl
|
||||||
end
|
end
|
||||||
|
|
||||||
% Initialization of the returned simulations (exogenous variables).
|
% Initialization of the returned simulations (exogenous variables).
|
||||||
X = exogenousvariables{exo_names{:}}.data;
|
X = exogenousvariables{exo_names{:}}(constraints.dates(1)-1:constraints.dates(end)).data;
|
||||||
|
|
||||||
% Inversion of the model, solvers for the free endogenous and exogenous variables (call a Newton-like algorithm in each period).
|
% Inversion of the model, solvers for the free endogenous and exogenous variables (call a Newton-like algorithm in each period).
|
||||||
for it = 2:nobs(constraints)+1
|
for it = 2:nobs(constraints)+1
|
||||||
|
|
Loading…
Reference in New Issue