Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
b326636d
Commit
b326636d
authored
Oct 23, 2012
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
matlab/ms-sbvar/msstart_setup.m
View file @
b326636d
...
...
@@ -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)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment