Add check whether tarb_new_block_probability is between 0 and 1

time-shift
Johannes Pfeifer 2015-05-14 14:26:54 +02:00
parent aa4b07610e
commit c2f07c720f
1 changed files with 4 additions and 0 deletions

View File

@ -54,6 +54,10 @@ if DynareOptions.student_degrees_of_freedom <= 0
error('initial_estimation_checks:: the student_degrees_of_freedom takes a positive integer argument');
end
if DynareOptions.TaRB.use_TaRB && (DynareOptions.TaRB.new_block_probability<0 || DynareOptions.TaRB.new_block_probability>1)
error(['initial_estimation_checks:: The tarb_new_block_probability must be between 0 and 1!'])
end
old_steady_params=Model.params; %save initial parameters for check if steady state changes param values
% % check if steady state solves static model (except if diffuse_filter == 1)