From 12cca117bcaa1fe49b7fa6258b210adf01c33ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Argos=29?= Date: Thu, 26 Oct 2023 18:30:43 +0200 Subject: [PATCH] Change the definition of the default baseline. --- matlab/cli/dcontrib.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matlab/cli/dcontrib.m b/matlab/cli/dcontrib.m index 61e9bc609..78256b01d 100644 --- a/matlab/cli/dcontrib.m +++ b/matlab/cli/dcontrib.m @@ -109,8 +109,8 @@ function dcontrib(varargin) lastperiod = baseline.dates(end); baseline = baseline{M_.exo_names{:}}; else - % Set default baseline (exogenous variable levels in firstperiod-1) - baseline = xvariables(firstperiod-1); + % Set default baseline (exogenous variable levels in firstperiod) + baseline = xvariables(firstperiod); baseline = repmat(baseline.data, lastperiod-firstperiod+1, 1); baseline = dseries(baseline, firstperiod, M_.exo_names); end