From ab6063f2b447eb068aadf32fdc15459a47cb9b28 Mon Sep 17 00:00:00 2001 From: Johannes Pfeifer Date: Sun, 6 Mar 2016 21:19:17 +0100 Subject: [PATCH] Check whether at least one MCM chain is requested when using Bayesian estimation --- matlab/initial_estimation_checks.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/matlab/initial_estimation_checks.m b/matlab/initial_estimation_checks.m index c3c9321da..f05df3056 100644 --- a/matlab/initial_estimation_checks.m +++ b/matlab/initial_estimation_checks.m @@ -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)