diff --git a/matlab/estimation/initial_estimation_checks.m b/matlab/estimation/initial_estimation_checks.m index 03596d646e0ae361b0770b4244e8a600e8e9f253..148a219d529b2257fb6165bbd8980e0217b6f15c 100644 --- a/matlab/estimation/initial_estimation_checks.m +++ b/matlab/estimation/initial_estimation_checks.m @@ -161,6 +161,10 @@ if (any(bayestopt_.pshape >0 ) && options_.mh_replic) && options_.mh_nblck<1 error('initial_estimation_checks:: Bayesian estimation cannot be conducted with mh_nblocks=0.') end +if options_.mh_drop<0 || options_.mh_drop>=1 + error('initial_estimation_checks:: mh_drop must be in [0,1).') +end + % check and display warnings if steady-state solves static model (except if diffuse_filter == 1) and if steady-state changes estimated parameters [oo_.steady_state] = check_steady_state_changes_parameters(M_,estim_params_,oo_,options_, [options_.diffuse_filter==0 options_.diffuse_filter==0] );