Posterior Mean and Confidence Intervals

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

Posterior Mean and Confidence Intervals

Postby sashe86 » Tue May 01, 2012 11:18 am

Hi there,

This is probably very simple, but none the less, I am struggling, so any help is greatly appreciated, as always.

When I run the model, the output in my command window displays the results from the posterior maximization for each of my parameters: It shows the prior mean and standard deviation, plus the mode, the t-stat and the distribution type.

I want this table to also show the posterior mean and the confidence interval results. I have tried including the moments_varendo and the conf_sig commands in the model, but I just can't seem to find the results. I understand they should be stored in the oo_ structure, but I can't find them.
sashe86
 
Posts: 24
Joined: Tue Apr 03, 2012 4:14 pm

Re: Posterior Mean and Confidence Intervals

Postby jpfeifer » Tue May 01, 2012 3:15 pm

Which version of Dynare are you using? Could you post the mod-file and the data-file?
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Posterior Mean and Confidence Intervals

Postby sashe86 » Tue May 01, 2012 3:22 pm

Hi jpfeifer,

I'm using the latest version - Dynare 4.2.5

The .mod file and data set I'm using is attached.

Thanks for the help.
Last edited by sashe86 on Tue May 01, 2012 9:34 pm, edited 1 time in total.
sashe86
 
Posts: 24
Joined: Tue Apr 03, 2012 4:14 pm

Re: Posterior Mean and Confidence Intervals

Postby jpfeifer » Tue May 01, 2012 7:00 pm

You are not actually running a Metropolis-Hastings algorithm (mh_replic=0). Your posterior mode is the value that maximizes the posterior likelihood using a certain optimizer. The displayed t-stats follow from a normality assumption and using the inverse hessian to approximate the standard errors. In that sense, the mean is identical to the mode (due to the normality assumption) and confidence intervals can be easily computed as you know the mean and the standard deviation. If you want to have an actual posterior distribution of the parameters, you have to run a MCMC.
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: Posterior Mean and Confidence Intervals

Postby sashe86 » Tue May 01, 2012 9:34 pm

Hi jpfeifer,

That's great, thanks for pointing that out. I have amended the mh_replic and re-ran the model and now I can get the posterior mean results.

Thanks again!!

S
sashe86
 
Posts: 24
Joined: Tue Apr 03, 2012 4:14 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 5 guests

cron