Merge pull request #989 from JohannesPfeifer/test_condition
Correct check condition in dynare_estimation_init.m introduced in b20…time-shift
commit
e79968d5ad
|
@ -148,7 +148,7 @@ if ~isempty(estim_params_)
|
||||||
[xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_);
|
[xparam1,estim_params_,bayestopt_,lb,ub,M_] = set_prior(estim_params_,M_,options_);
|
||||||
end
|
end
|
||||||
|
|
||||||
if ~all(bayestopt_.pshape~=0) || ~all(bayestopt_.pshape==0)
|
if any(bayestopt_.pshape==0) && any(bayestopt_.pshape~=0)
|
||||||
error('Estimation must be either fully ML or fully Bayesian. Maybe you forgot to specify a prior distribution.')
|
error('Estimation must be either fully ML or fully Bayesian. Maybe you forgot to specify a prior distribution.')
|
||||||
end
|
end
|
||||||
% Check if a _prior_restrictions.m file exists
|
% Check if a _prior_restrictions.m file exists
|
||||||
|
|
Loading…
Reference in New Issue