Specification of Inverse Gamma Priors

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.

Specification of Inverse Gamma Priors

Postby mreames_unimelb » Sat Oct 09, 2010 3:12 am

Hi Dynare community,

I am trying to specify the following priors

1. Inverse gamma with mode = 1.5 and degrees of freedom = 4
2. Inverse gamma with mode = 0.001 and degrees of freedom = 2

I was wondering how I might do this since dynare requires I specify the mean and variance?

Regards,
mreames_unimelb
 
Posts: 6
Joined: Sat Jul 24, 2010 5:12 am

Re: Specification of Inverse Gamma Priors

Postby StephaneAdjemian » Mon Oct 11, 2010 8:00 am

Hi,

The trick is that (with recent version of dynare >=4.1) it is possible to call a function inside the estimated_params block. I find more intuitive to define a non symmetric prior with the mode and the standard deviation, so instead of declaring a number for the prior mean I call a function computing the mean from the mode and the standard deviation (or the variance). This is done (for all prior shapes) in the matlab function
mode_and_variance_to_mean (this function is in the subfolder distributions of the dynare's matlab folder). You can write a function computing the mean and the standard deviation from the mode and the degrees of freedom (I am not sure it's possible to obtain the mapping analitically).

Best, Stéphane.
Stéphane Adjemian
Université du Maine, GAINS and DynareTeam
https://stepan.adjemian.eu
StephaneAdjemian
 
Posts: 429
Joined: Wed Jan 05, 2005 4:24 pm
Location: Paris, France.


Return to Dynare help

Who is online

Users browsing this forum: Google [Bot] and 7 guests