From a828c3d2c1edf1bc4465561a425a9591910c0dc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Karaba=29?= Date: Thu, 11 Feb 2010 14:26:30 +0100 Subject: [PATCH] Do not compute the harmonic mean estimator of the marginal density and various posterior statistics if options_.mh_replic==0. --- matlab/dynare_estimation_1.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index 375d23757..155c791be 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -1064,9 +1064,11 @@ if (any(bayestopt_.pshape >0 ) & options_.mh_replic) | ... %% Estimation of the marginal density from the Mh draws: if options_.mh_replic [marginal,oo_] = marginal_density(M_, options_, estim_params_, oo_); + oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bayestopt_, oo_); + oo_ = PlotPosteriorDistributions(estim_params_, M_, options_, bayestopt_, oo_); + else + load([M_.fname '_results'],'oo_'); end - oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bayestopt_, oo_); - oo_ = PlotPosteriorDistributions(estim_params_, M_, options_, bayestopt_, oo_); metropolis_draw(1); if options_.bayesian_irf PosteriorIRF('posterior');