execute_prior_posterior_function.m: move error in correct, transform error into warning

mr#1906
Johannes Pfeifer 2021-08-16 14:52:29 +02:00 committed by Stéphane Adjemian (Charybdis)
parent 0b491b3b09
commit a27bc872ad
Signed by: stepan
GPG Key ID: 295C1FE89E17EB3C
1 changed files with 3 additions and 6 deletions

View File

@ -68,12 +68,9 @@ elseif strcmpi(type,'prior')
else else
error('The prior distributions are not properly set up.') error('The prior distributions are not properly set up.')
end end
if exist([M_.fname '_prior_restrictions.m']) end
error('prior_function currently does not support endogenous prior restrictions.') if exist([M_.fname '_prior_restrictions.m'])
%options_.plot_priors=0; warning('prior_function currently does not support endogenous prior restrictions. They will be ignored. Consider using a prior_function with nobs=1.')
%[~,~,~,~, M_, options_, oo_, ~, ~] = ...
% dynare_estimation_init(M_.endo_names, M_.fname, 1, M_, options_, oo_, estim_params_, bayestopt_);
end
end end
prior_draw(bayestopt_, options_.prior_trunc); prior_draw(bayestopt_, options_.prior_trunc);
else else