Commit d86d713c authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Renamed dynSeries class as dseries.

parent 00567512
......@@ -2,27 +2,27 @@ function [a,b] = align(a, b) % --*-- Unitary tests --*--
%@info:
%! @deftypefn {Function File} {[@var{a}, @var{b}] =} align (@var{a}, @var{b})
%! @anchor{dynSeries/align}
%! @anchor{dseries/align}
%! @sp 1
%! If dynSeries objects @var{a} and @var{b} are defined on different time ranges, extend @var{a} and/or
%! If dseries objects @var{a} and @var{b} are defined on different time ranges, extend @var{a} and/or
%! @var{b} with NaNs so that they are defined on the same time range.
%! @sp 2
%! @strong{Inputs}
%! @sp 1
%! @table @ @var
%! @item a
%! Object instantiated by @ref{dynSeries}.
%! Object instantiated by @ref{dseries}.
%! @item b
%! Object instantiated by @ref{dynSeries}.
%! Object instantiated by @ref{dseries}.
%! @end table
%! @sp 2
%! @strong{Outputs}
%! @sp 1
%! @table @ @var
%! @item a
%! Object instantiated by @ref{dynSeries}.
%! Object instantiated by @ref{dseries}.
%! @item b
%! Object instantiated by @ref{dynSeries}.
%! Object instantiated by @ref{dseries}.
%! @end table
%! @end deftypefn
%@eod:
......@@ -45,7 +45,7 @@ function [a,b] = align(a, b) % --*-- Unitary tests --*--
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
if ~isequal(a.freq,b.freq)
error(['dynSeries::merge_dates: ''' inputname(1) ''' and ''' inputname(2) ''' dynSeries objects must have common frequencies!'])
error(['dseries::merge_dates: ''' inputname(1) ''' and ''' inputname(2) ''' dseries objects must have common frequencies!'])
end
init = min(a.init,b.init);
......@@ -59,7 +59,7 @@ last_b = time_range_of_b(b.nobs);
common_time_range = intersect(time_range_of_a,time_range_of_b);
if isempty(common_time_range)
error(['dynSeries::merge_dates: ''' inputname(1) ''' and ''' inputname(2) ''' dynSeries object must have at least one common date!'])
error(['dseries::merge_dates: ''' inputname(1) ''' and ''' inputname(2) ''' dseries object must have at least one common date!'])
end
if a.init<b.init
......@@ -100,9 +100,9 @@ a.time = a.init:a.init+(a.nobs-1);
%$ A_init = '1990Q1';
%$ B_init = '1989Q2';
%$
%$ % Instantiate two dynSeries objects
%$ ts1 = dynSeries(A,A_init,A_name);
%$ ts2 = dynSeries(B,B_init,B_name);
%$ % Instantiate two dseries objects
%$ ts1 = dseries(A,A_init,A_name);
%$ ts2 = dseries(B,B_init,B_name);
%$
%$ try
%$ [ts1, ts2] = align(ts1, ts2);
......@@ -132,9 +132,9 @@ a.time = a.init:a.init+(a.nobs-1);
%$ A_init = '1990Q1';
%$ B_init = '1990Q1';
%$
%$ % Instantiate two dynSeries objects
%$ ts1 = dynSeries(A,A_init,A_name);
%$ ts2 = dynSeries(B,B_init,B_name);
%$ % Instantiate two dseries objects
%$ ts1 = dseries(A,A_init,A_name);
%$ ts2 = dseries(B,B_init,B_name);
%$
%$ try
%$ [ts1, ts2] = align(ts1, ts2);
......@@ -164,9 +164,9 @@ a.time = a.init:a.init+(a.nobs-1);
%$ A_init = '1990Q1';
%$ B_init = '1990Q1';
%$
%$ % Instantiate two dynSeries objects
%$ ts1 = dynSeries(A,A_init,A_name);
%$ ts2 = dynSeries(B,B_init,B_name);
%$ % Instantiate two dseries objects
%$ ts1 = dseries(A,A_init,A_name);
%$ ts2 = dseries(B,B_init,B_name);
%$
%$ try
%$ [ts2, ts1] = align(ts2, ts1);
......
......@@ -2,18 +2,18 @@ function ts = baxter_king_filter(ts, high_frequency, low_frequency, K) % --*-- U
% ts = baxter_king_filter(ts, high_frequency, low_frequency, K)
%
% Implementation of Baxter and King (1999) band pass filter for dynSeries objects. The code is adapted from
% Implementation of Baxter and King (1999) band pass filter for dseries objects. The code is adapted from
% the one provided by Baxter and King. This filter isolates business cycle fluctuations with a period of length
% ranging between high_frequency to low_frequency (quarters).
%
% INPUTS
% o ts dynSeries object.
% o ts dseries object.
% o high_frequency positive scalar, period length (default value is 6).
% o low_frequency positive scalar, period length (default value is 32).
% o K positive scalar integer, truncation parameter (default value is 12).
%
% OUTPUTS
% o ts dynSeries object.
% o ts dseries object.
%
% REMARKS
% This filter use a (symmetric) moving average smoother, so that K observations at the beginning and at the end of the
......@@ -45,14 +45,14 @@ if nargin<4 || isempty(truncature)
% Set default number of periods corresponding to the highest frequency.
high_frequency = 6;
if nargin<1
error('dynSeries::baxter_king_filter: I need at least one argument')
error('dseries::baxter_king_filter: I need at least one argument')
end
else
if high_frequency<2
error('dynSeries::baxter_king_filter: Second argument must be greater than 2!')
error('dseries::baxter_king_filter: Second argument must be greater than 2!')
end
if high_frequency>low_frequency
error('dynSeries::baxter_king_filter: Second argument must be smaller than the third argument!')
error('dseries::baxter_king_filter: Second argument must be smaller than the third argument!')
end
end
end
......@@ -91,7 +91,7 @@ for t = K+1:ts.nobs-K
tmp(t,:) = weights'*ts.data(t-K:t+K,:);
end
% Update dynSeries object.
% Update dseries object.
ts.data = tmp(K+1:end-K,:);
ts.nobs = ts.nobs-2*K;
ts.init = ts.init+K;
......@@ -113,9 +113,9 @@ ts.time = ts.init:ts.init+(ts.nobs-1);
%$
%$ % Test the routine.
%$ try
%$ ts = dynSeries(y,'1950Q1');
%$ ts = dseries(y,'1950Q1');
%$ ts = ts.baxter_king_filter();
%$ xx = dynSeries(x,'1950Q1');
%$ xx = dseries(x,'1950Q1');
%$ t(1) = 1;
%$ catch
%$ t(1) = 0;
......
......@@ -24,7 +24,7 @@ error_flag = 0;
if ~isequal(m,A.vobs);
error_flag = 1;
if nargout>1
message = ['dynSeries: Wrong number of variables in dynSeries object ''' inputname(1) '''!']:
message = ['dseries: Wrong number of variables in dseries object ''' inputname(1) '''!']:
end
return
end
......@@ -32,7 +32,7 @@ end
if ~isequal(n,A.nobs);
error_flag = 1;
if nargout>1
message = ['dynSeries: Wrong number of observations in dynSeries object ''' inputname(1) '''!']:
message = ['dseries: Wrong number of observations in dseries object ''' inputname(1) '''!']:
end
return
end
......@@ -40,7 +40,7 @@ end
if ~isequal(m,numel(A.name));
error_flag = 1;
if nargout>1
message = ['dynSeries: Wrong number of variable names in dynSeries object ''' inputname(1) '''!']:
message = ['dseries: Wrong number of variable names in dseries object ''' inputname(1) '''!']:
end
return
end
......@@ -48,7 +48,7 @@ end
if ~isequal(m,numel(A.tex));
error_flag = 1;
if nargout>1
message = ['dynSeries: Wrong number of variable tex names in dynSeries object ''' inputname(1) '''!']:
message = ['dseries: Wrong number of variable tex names in dseries object ''' inputname(1) '''!']:
end
return
end
......@@ -56,7 +56,7 @@ end
if ~isequal(numel(A.name),numel(A.tex));
error_flag = 1;
if nargout>1
message = ['dynSeries: The number of variable tex names has to be equal to the number of variable names in dynSeries object ''' inputname(1) '''!']:
message = ['dseries: The number of variable tex names has to be equal to the number of variable names in dseries object ''' inputname(1) '''!']:
end
return
end
......@@ -64,7 +64,7 @@ end
if ~isequal(numel(unique(A.name)),numel(A.name));
error_flag = 1;
if nargout>1
message = ['dynSeries: The variable names in dynSeries object ''' inputname(1) ''' are not unique!']:
message = ['dseries: The variable names in dseries object ''' inputname(1) ''' are not unique!']:
end
return
end
......@@ -72,7 +72,7 @@ end
if ~isequal(numel(unique(A.tex)),numel(A.tex));
error_flag = 1;
if nargout>1
message = ['dynSeries: The variable tex names in dynSeries object ''' inputname(1) ''' are not unique!']:
message = ['dseries: The variable tex names in dseries object ''' inputname(1) ''' are not unique!']:
end
return
end
......@@ -80,7 +80,7 @@ end
if ~isequal(A.time,A.init:A.init+A.nobs)
error_flag = 1;
if nargout>1
message = ['dynSeries: Wrong definition of the time member in dynSeries object ''' inputname(1) '''!']:
message = ['dseries: Wrong definition of the time member in dseries object ''' inputname(1) '''!']:
end
return
end
\ No newline at end of file
function B = cumsum(varargin) % --*-- Unitary tests --*--
% Overloads matlab's cumsum function for dynSeries objects.
% Overloads matlab's cumsum function for dseries objects.
%
% INPUTS
% o A dynSeries object [mandatory].
% o A dseries object [mandatory].
% o d dates object [optional]
% o v dynSeries object with one observation [optional]
% o v dseries object with one observation [optional]
%
% OUTPUTS
% o B dynSeries object.
% o B dseries object.
% Copyright (C) 2013 Dynare Team
%
......@@ -31,11 +31,11 @@ function B = cumsum(varargin) % --*-- Unitary tests --*--
idx = find(~any(isnan(varargin{1}.data)));
if isempty(idx)
error('dynSeries::cumsum: All the variables have NaNs. The cumulated sum cannot be computed!')
error('dseries::cumsum: All the variables have NaNs. The cumulated sum cannot be computed!')
end
if ~isequal(idx(:),transpose(1:varargin{1}.vobs))
warning('dynSeries::cumsum: The cumulated sum is not computed for some variables because they have NaNs!')
warning('dseries::cumsum: The cumulated sum is not computed for some variables because they have NaNs!')
end
switch nargin
......@@ -50,15 +50,15 @@ switch nargin
B.tex(i) = {['\sum_t ' B.tex{i}]};
end
case 2
if isa(varargin{2},'dynSeries')
if isa(varargin{2},'dseries')
if ~isequal(varargin{1}.vobs, varargin{2}.vobs)
error('dynSeries::cumsum: First and second input arguments must be dynSeries objects with the same number of variables!')
error('dseries::cumsum: First and second input arguments must be dseries objects with the same number of variables!')
end
if ~isequal(varargin{1}.name, varargin{2}.name)
warning('dynSeries::cumsum: First and second input arguments must be dynSeries objects do not have the same variables!')
warning('dseries::cumsum: First and second input arguments must be dseries objects do not have the same variables!')
end
if ~isequal(varargin{2}.nobs,1)
error('dynSeries::cumsum: Second input argument must be a dynSeries object with only one observation!')
error('dseries::cumsum: Second input argument must be a dseries object with only one observation!')
end
B = cumsum(varargin{1});
B.data = bsxfun(@plus,B.data,varargin{2}.data);
......@@ -69,28 +69,28 @@ switch nargin
if varargin{2}==(B.init-1)
return
else
error(['dynSeries::cumsum: date ' date2string(varargin{2}) ' is not in the sample!'])
error(['dseries::cumsum: date ' date2string(varargin{2}) ' is not in the sample!'])
end
end
B.data = bsxfun(@minus,B.data,B.data(t,:));
else
error('dynSeries::cumsum: Second input argument must be a dynSeries object or a dates object!')
error('dseries::cumsum: Second input argument must be a dseries object or a dates object!')
end
case 3
if ~isdates(varargin{2})
error('dynSeries::cumsum: Second input argument must be a dates object!')
error('dseries::cumsum: Second input argument must be a dates object!')
end
if ~isa(varargin{3},'dynSeries')
error('dynSeries::cumsum: Third input argument must be a dynSeries object!')
if ~isa(varargin{3},'dseries')
error('dseries::cumsum: Third input argument must be a dseries object!')
end
if ~isequal(varargin{1}.vobs, varargin{3}.vobs)
error('dynSeries::cumsum: First and third input arguments must be dynSeries objects with the same number of variables!')
error('dseries::cumsum: First and third input arguments must be dseries objects with the same number of variables!')
end
if ~isequal(varargin{1}.name, varargin{3}.name)
warning('dynSeries::cumsum: First and third input arguments must be dynSeries objects do not have the same variables!')
warning('dseries::cumsum: First and third input arguments must be dseries objects do not have the same variables!')
end
if ~isequal(varargin{3}.nobs,1)
error('dynSeries::cumsum: Third input argument must be a dynSeries object with only one observation!')
error('dseries::cumsum: Third input argument must be a dseries object with only one observation!')
end
B = cumsum(varargin{1});
t = find(B.time==varargin{2});
......@@ -99,12 +99,12 @@ switch nargin
B.data = bsxfun(@plus,B.data,varargin{3}.data);
return
else
error(['dynSeries::cumsum: date ' date2string(varargin{2}) ' is not in the sample!'])
error(['dseries::cumsum: date ' date2string(varargin{2}) ' is not in the sample!'])
end
end
B.data = bsxfun(@plus,B.data,varargin{3}.data-B.data(t,:));
otherwise
error('dynSeries::cumsum: Wrong number of input arguments!')
error('dseries::cumsum: Wrong number of input arguments!')
end
%@test:1
......@@ -115,13 +115,13 @@ end
%$ A_name = {'A1'};
%$
%$ % Instantiate a time series object.
%$ ts1 = dynSeries(A,[],A_name,[]);
%$ ts1 = dseries(A,[],A_name,[]);
%$
%$ % Call the tested method.
%$ ts1 = cumsum(ts1);
%$
%$ % Expected results.
%$ ts2 = dynSeries(transpose(1:10), [], A_name, []);
%$ ts2 = dseries(transpose(1:10), [], A_name, []);
%$
%$ % Check the results.
%$ warning off, % Because the names of the variables are not the same...
......@@ -138,13 +138,13 @@ end
%$ A_name = {'A1'};
%$
%$ % Instantiate a time series object.
%$ ts1 = dynSeries(A,[],A_name,[]);
%$ ts1 = dseries(A,[],A_name,[]);
%$
%$ % Call the tested method.
%$ ts1 = ts1.cumsum();
%$
%$ % Expected results.
%$ ts2 = dynSeries(transpose(1:10), [], A_name, []);
%$ ts2 = dseries(transpose(1:10), [], A_name, []);
%$
%$ % Check the results.
%$ warning off, % Because the names of the variables are not the same...
......@@ -161,13 +161,13 @@ end
%$ A_name = {'A1'};
%$
%$ % Instantiate a time series object.
%$ ts1 = dynSeries(A,[],A_name,[]);
%$ ts1 = dseries(A,[],A_name,[]);
%$
%$ % Call the tested method.
%$ ts1 = cumsum(ts1,dates('3Y'));
%$
%$ % Expected results.
%$ ts2 = dynSeries([-2; -1; 0; 1; 2; 3; 4; 5; 6; 7], [], A_name, []);
%$ ts2 = dseries([-2; -1; 0; 1; 2; 3; 4; 5; 6; 7], [], A_name, []);
%$
%$ % Check the results.
%$ warning off, % Because the names of the variables are not the same...
......@@ -184,14 +184,14 @@ end
%$ A_name = {'A1'};
%$
%$ % Instantiate a time series object.
%$ ts1 = dynSeries(A,[],A_name,[]);
%$ ts2 = dynSeries(pi, [], A_name, []);
%$ ts1 = dseries(A,[],A_name,[]);
%$ ts2 = dseries(pi, [], A_name, []);
%$
%$ % Call the tested method.
%$ ts3 = cumsum(ts1,dates('3Y'),ts2);
%$
%$ % Expected results.
%$ ts4 = dynSeries([-2; -1; 0; 1; 2; 3; 4; 5; 6; 7]+pi, [], A_name, []);
%$ ts4 = dseries([-2; -1; 0; 1; 2; 3; 4; 5; 6; 7]+pi, [], A_name, []);
%$
%$ % Check the results.
%$ warning off, % Because the names of the variables are not the same...
......@@ -208,14 +208,14 @@ end
%$ A_name = {'A1'};
%$
%$ % Instantiate a time series object.
%$ ts1 = dynSeries(A,[],A_name,[]);
%$ ts2 = dynSeries(pi, [], A_name, []);
%$ ts1 = dseries(A,[],A_name,[]);
%$ ts2 = dseries(pi, [], A_name, []);
%$
%$ % Call the tested method.
%$ ts3 = ts1.cumsum(dates('3Y'),ts2);
%$
%$ % Expected results.
%$ ts4 = dynSeries([-2; -1; 0; 1; 2; 3; 4; 5; 6; 7]+pi, [], A_name, []);
%$ ts4 = dseries([-2; -1; 0; 1; 2; 3; 4; 5; 6; 7]+pi, [], A_name, []);
%$
%$ % Check the results.
%$ warning off, % Because the names of the variables are not the same...
......
......@@ -2,15 +2,15 @@ function disp(A)
%@info:
%! @deftypefn {Function File} disp (@var{A})
%! @anchor{@dynSeries/disp}
%! @anchor{@dseries/disp}
%! @sp 1
%! Overloads the disp method for the Dynare time series class (@ref{dynSeries}).
%! Overloads the disp method for the Dynare time series class (@ref{dseries}).
%! @sp 2
%! @strong{Inputs}
%! @sp 1
%! @table @ @var
%! @item A
%! Dynare time series object instantiated by @ref{dynSeries}.
%! Dynare time series object instantiated by @ref{dseries}.
%! @end table
%! @sp 1
%! @strong{Outputs}
......@@ -34,7 +34,7 @@ for i = 1:A.vobs
TABLE = horzcat(TABLE, tmp);
end
disp(vspace)
disp([inputname(1) ' is a dynSeries object:'])
disp([inputname(1) ' is a dseries object:'])
disp(vspace);
disp(TABLE);
disp(vspace);
\ No newline at end of file
function display(A)
%@info:
%! @deftypefn {Function File} display (@var{A})
%! @anchor{@dynSeries/display}
%! @anchor{@dseries/display}
%! @sp 1
%! Overloads the disp method for the Dynare time series class (@ref{dynSeries}).
%! Overloads the disp method for the Dynare time series class (@ref{dseries}).
%! @sp 2
%! @strong{Inputs}
%! @sp 1
%! @table @ @var
%! @item A
%! Dynare time series object instantiated by @ref{dynSeries}.
%! Dynare time series object instantiated by @ref{dseries}.
%! @end table
%! @sp 1
%! @strong{Outputs}
......@@ -59,7 +59,7 @@ else
end
disp(vspace)
disp([inputname(1) ' is a dynSeries object:'])
disp([inputname(1) ' is a dseries object:'])
disp(vspace);
disp(TABLE);
disp(vspace);
\ No newline at end of file
function ts = dynSeries(varargin) % --*-- Unitary tests --*--
function ts = dseries(varargin) % --*-- Unitary tests --*--
%@info:
%! @deftypefn {Function File} {@var{ts} =} dynSeries (@var{a},@var{b},@var{c},@var{d})
%! @anchor{dynSeries}
%! @deftypefn {Function File} {@var{ts} =} dseries (@var{a},@var{b},@var{c},@var{d})
%! @anchor{dseries}
%! @sp 1
%! Constructor for the Dynare time series class.
%! @sp 2
%! @strong{Inputs}
%! @sp 2
%! If @code{nargin==0} then an empty dynSeries object is created. The object can be populated with data subsequently using the overloaded subsref method.
%! If @code{nargin==0} then an empty dseries object is created. The object can be populated with data subsequently using the overloaded subsref method.
%! @sp 2
%! If @code{nargin==1} and if the input argument is a @ref{dynDate} object, then a dynSeries object without data is created. This object can be populated with the overload subsref method.
%! If @code{nargin==1} and if the input argument is a @ref{dynDate} object, then a dseries object without data is created. This object can be populated with the overload subsref method.
%! @sp 2
%! If @code{nargin==1} and if the input argument is a string for the name of a csv, m or mat file containing data, then a dynSeries object is created from these data.
%! If @code{nargin==1} and if the input argument is a string for the name of a csv, m or mat file containing data, then a dseries object is created from these data.
%! @sp 2
%! If @code{nargin>1}:
%! @sp 1
......@@ -87,29 +87,29 @@ ts.freq = [];
ts.init = dates();
ts.time = dates();
ts = class(ts,'dynSeries');
ts = class(ts,'dseries');
switch nargin
case 0
% Create an empty dynSeries object.
% Create an empty dseries object.
return
case 1
if isa(varargin{1},'dates') && isequal(length(varargin{1}),1)
switch length(varargin{1})
case 0
error(['dynSeries::dynSeries: ' inputname(1) ' (identified as a dates object) must be non empty!'])
error(['dseries::dseries: ' inputname(1) ' (identified as a dates object) must be non empty!'])
case 1
% Create an empty dynSeries object with an initial date.
% Create an empty dseries object with an initial date.
ts.init = varargin{1};
ts.freq = varargin{1}.freq;
otherwise
error(['dynSeries::dynSeries: ' inputname(1) ' (identified as a dates object) must have only one element!'])
error(['dseries::dseries: ' inputname(1) ' (identified as a dates object) must have only one element!'])
end
return
elseif ischar(varargin{1})
% Create a dynSeries object loading data in a file (*.csv, *.m, *.mat).
% Create a dseries object loading data in a file (*.csv, *.m, *.mat).
if isempty(varargin{1})
error('dynSeries:: Wrong calling sequence! Input argument cannot be an empty string.')
error('dseries:: Wrong calling sequence! Input argument cannot be an empty string.')
elseif check_file_extension(varargin{1},'m')
[freq,init,data,varlist,tex] = load_m_file_data(varargin{1});
elseif check_file_extension(varargin{1},'mat')
......@@ -120,7 +120,7 @@ switch nargin
elseif check_file_extension(varargin{1},'xls') || check_file_extension(varargin{1},'xlsx')
if ~isempty(who('global','options_'));
% Check that the object is instantiated within a dynare session so that options_ global structure exists.
% Should provide latter a mechanism to pass range and sheet to dynSeries constructor...
% Should provide latter a mechanism to pass range and sheet to dseries constructor...
range = evalin('base','options_.xls_range');
sheet = evalin('base','options_.xls_sheet');
else
......@@ -131,7 +131,7 @@ switch nargin
[freq,init,data,varlist] = load_xls_file_data(varargin{1}, sheet, range);
tex = [];
else
error(['dynSeries:: I''m not able to load data from ' inputname(1) '!'])
error(['dseries:: I''m not able to load data from ' inputname(1) '!'])
end
ts.init = init;
ts.freq = freq;
......@@ -184,7 +184,7 @@ switch nargin
ts.freq = 1;
ts.init = dates([num2str(b) 'Y']);
else
error('dynSeries::dynSeries: Wrong calling sequence!');
error('dseries::dseries: Wrong calling sequence!');
end
end
% Get the names of the variables.
......@@ -194,7 +194,7 @@ switch nargin
ts.name = vertcat(ts.name, c(i) );
end
else
error('dynSeries::dynSeries: The number of declared names does not match the number of variables!')
error('dseries::dseries: The number of declared names does not match the number of variables!')
end
else
ts.name = default_name(ts.vobs);
......@@ -205,21 +205,21 @@ switch nargin
ts.tex = vertcat(ts.tex, d(i));
end
else
error('dynSeries::dynSeries: The number of declared tex names does not match the number of variables!')
error('dseries::dseries: The number of declared tex names does not match the number of variables!')
end
else
ts.tex = name2tex(ts.name);
end
otherwise
error('dynSeries::dynSeries: Can''t instantiate the class, wrong calling sequence!')
error('dseries::dseries: Can''t instantiate the class, wrong calling sequence!')
end
ts.time = ts.init:ts.init+(ts.nobs-1);
%@test:1
%$ % Test if we can instantiate an empty dynSeries object.
%$ % Test if we can instantiate an empty dseries object.
%$ try
%$ ts = dynSeries();
%$ ts = dseries();
%$ t(1) = 1;
%$ catch
%$ t(1) = 0;
......@@ -233,7 +233,7 @@ ts.time = ts.init:ts.init+(ts.nobs-1);
%$
%$ try
%$ aa = dates('1938M11');
%$ ts = dynSeries(aa);
%$ ts = dseries(aa);
%$ t(1) = 1;
%$ catch
%$ t = 0;
......@@ -252,7 +252,7 @@ ts.time = ts.init:ts.init+(ts.nobs-1);
%$ t = zeros(6,1);
%$
%$ try
%$ ts = dynSeries('dynseries_test_data.m');
%$ ts = dseries('dynseries_test_data.m');
%$ t(1) = 1;
%$ catch
%$ t = 0;
......@@ -273,7 +273,7 @@ ts.time = ts.init:ts.init+(ts.nobs-1);
%$ t = zeros(6,1);
%$
%$ try