sbvar: replaced warning about sample size different from available
data by error if available data are shorter than declared sampletime-shift
parent
d5f29e0b89
commit
b326636d0b
|
@ -41,12 +41,8 @@ nData=(options_.ms.final_year-options_.ms.initial_year)*options_.ms.freq + (opti
|
||||||
%options_.ms.data = datacbogdpffr;
|
%options_.ms.data = datacbogdpffr;
|
||||||
%clear datacbogdpffr;
|
%clear datacbogdpffr;
|
||||||
[nt,ndv]=size(options_.data);
|
[nt,ndv]=size(options_.data);
|
||||||
if nt~=nData
|
if nt < nData
|
||||||
disp(' ')
|
error('The declared sample is longer than the available data')
|
||||||
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
|
|
||||||
end
|
end
|
||||||
%--------
|
%--------
|
||||||
%1 CBO output gap -- log(x_t)-log(x_t potential)
|
%1 CBO output gap -- log(x_t)-log(x_t potential)
|
||||||
|
|
Loading…
Reference in New Issue