pooled_ols: check input values

time-shift
Houtan Bastani 2017-10-27 12:20:16 +02:00
parent 11ebbd7785
commit 61b0277c6a
1 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,9 @@ function pooled_ols(ds, param_common, param_regex)
global M_ oo_
% Check input
assert(~isempty(param_common) && ~isempty(param_regex));
jsonfile = [M_.fname '.json'];
if exist(jsonfile, 'file') ~= 2
error('Could not find %s! Please use the json=parse option (See the Dynare invocation section in the reference manual).', jsonfile);