Skip to content
Snippets Groups Projects
Verified Commit 1880a34d authored by Johannes Pfeifer's avatar Johannes Pfeifer Committed by Stéphane Adjemian
Browse files

Provide error message if unsupported endogenous prior restriction is used

parent fec74555
No related branches found
No related tags found
No related merge requests found
...@@ -68,6 +68,12 @@ elseif strcmpi(type,'prior') ...@@ -68,6 +68,12 @@ 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'])
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 end
prior_draw(bayestopt_, options_.prior_trunc); prior_draw(bayestopt_, options_.prior_trunc);
else else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment