diff --git a/matlab/execute_prior_posterior_function.m b/matlab/execute_prior_posterior_function.m index e998dd19b001da35cc7e16d89372aa18c0823da4..71e2009dd5f4fe4e297734db43fa1e92f2c2356c 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