Commit b326636d authored by MichelJuillard's avatar MichelJuillard
Browse files

sbvar: replaced warning about sample size different from available

data by error if available data are shorter than declared sample
parent d5f29e0b
......@@ -41,12 +41,8 @@ nData=(options_.ms.final_year-options_.ms.initial_year)*options_.ms.freq + (opti
%options_.ms.data = datacbogdpffr;
%clear datacbogdpffr;
[nt,ndv]=size(options_.data);
if nt~=nData
disp(' ')
warning(sprintf('nt=%d, Caution: not equal to the length in the data',nt));
%disp(sprintf('nt=%d, Caution: not equal to the length in the data',nt));
disp('Press ctrl-c to abort')
return
if nt < nData
error('The declared sample is longer than the available data')
end
%--------
%1 CBO output gap -- log(x_t)-log(x_t potential)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment