From b81159f12c9b030711320c2f81e622855f44dfd7 Mon Sep 17 00:00:00 2001 From: Michel Juillard <michel.juillard@mjui.fr> Date: Sun, 3 Nov 2013 11:40:36 +0100 Subject: [PATCH] adding comments --- matlab/dynare_estimation_1.m | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/matlab/dynare_estimation_1.m b/matlab/dynare_estimation_1.m index ec907da7b..652dc6947 100644 --- a/matlab/dynare_estimation_1.m +++ b/matlab/dynare_estimation_1.m @@ -767,11 +767,15 @@ if (any(bayestopt_.pshape >0 ) && options_.mh_replic) || ... CutSample(M_, options_, estim_params_); %% Estimation of the marginal density from the Mh draws: if options_.mh_replic - [marginal,oo_] = marginal_density(M_, options_, estim_params_, oo_); + [marginal,oo_] = marginal_density(M_, options_, estim_params_, ... + oo_); + % Store posterior statistics by parameter name oo_ = GetPosteriorParametersStatistics(estim_params_, M_, options_, bayestopt_, oo_); if ~options_.nograph oo_ = PlotPosteriorDistributions(estim_params_, M_, options_, bayestopt_, oo_); end + % Store posterior mean in a vector and posterior variance in + % a matrix [oo_.posterior.metropolis.mean,oo_.posterior.metropolis.Variance] ... = GetPosteriorMeanVariance(M_,options_.mh_drop); else -- GitLab