Change the definition of the default baseline.
parent
b0a84bd6f8
commit
12cca117bc
|
@ -109,8 +109,8 @@ function dcontrib(varargin)
|
||||||
lastperiod = baseline.dates(end);
|
lastperiod = baseline.dates(end);
|
||||||
baseline = baseline{M_.exo_names{:}};
|
baseline = baseline{M_.exo_names{:}};
|
||||||
else
|
else
|
||||||
% Set default baseline (exogenous variable levels in firstperiod-1)
|
% Set default baseline (exogenous variable levels in firstperiod)
|
||||||
baseline = xvariables(firstperiod-1);
|
baseline = xvariables(firstperiod);
|
||||||
baseline = repmat(baseline.data, lastperiod-firstperiod+1, 1);
|
baseline = repmat(baseline.data, lastperiod-firstperiod+1, 1);
|
||||||
baseline = dseries(baseline, firstperiod, M_.exo_names);
|
baseline = dseries(baseline, firstperiod, M_.exo_names);
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue