Fix handling of leading missing values in x13
The x13 print
method discards leading NaN in the data:
p1 = firstobservedperiod(o.y);
p2 = lastobservedperiod(o.y);
...
fprintf(fid, ' data = %s', sprintf(data2txt(o.y(p1:p2).data)));
However, the run
-method passes the results back as a dseries
starting with the first NaN
-period o.y.init
instead of o.y.firstobservedperiod
:
o.results.(savedoutput{i}) = dseries(data(:,2), o.y.init, savedoutput{i});
It seems all occurrences of o.y.init
in run
should be o.y.firstobservedperiod