From 1880a34d2f73ea32667f508d397a93835a30941e Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer <jpfeifer@gmx.de> Date: Fri, 16 Nov 2018 15:22:03 +0100 Subject: [PATCH] Provide error message if unsupported endogenous prior restriction is used --- matlab/execute_prior_posterior_function.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/matlab/execute_prior_posterior_function.m b/matlab/execute_prior_posterior_function.m index e998dd19b0..71e2009dd5 100644 --- a/matlab/execute_prior_posterior_function.m +++ b/matlab/execute_prior_posterior_function.m @@ -68,6 +68,12 @@ elseif strcmpi(type,'prior') else error('The prior distributions are not properly set up.') end + if exist([M_.fname '_prior_restrictions.m']) + error('prior_function currently does not support endogenous prior restrictions.') + %options_.plot_priors=0; + %[~,~,~,~, M_, options_, oo_, ~, ~] = ... + % dynare_estimation_init(M_.endo_names, M_.fname, 1, M_, options_, oo_, estim_params_, bayestopt_); + end end prior_draw(bayestopt_, options_.prior_trunc); else -- GitLab