Merge pull request #1126 from JohannesPfeifer/mh_nblocks_check

Check whether at least one MCM chain is requested when using Bayesian…
time-shift
Stéphane Adjemian 2016-03-06 21:56:41 +01:00
commit e4294ee4fc
1 changed files with 4 additions and 0 deletions

View File

@ -66,6 +66,10 @@ if DynareOptions.TaRB.use_TaRB && (DynareOptions.TaRB.new_block_probability<0 ||
error(['initial_estimation_checks:: The tarb_new_block_probability must be between 0 and 1!'])
end
if (any(BayesInfo.pshape >0 ) && DynareOptions.mh_replic) && DynareOptions.mh_nblck<1
error(['initial_estimation_checks:: Bayesian estimation cannot be conducted with mh_nblocks=0.'])
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)