jpfeifer wrote:Dear Huan,
if you know your parameter is bounded, you should use a prior that restricts it to that range. Using a gamma prior is not advocated because the upper bound is infinity. There is no generalized gamma distribution, so specifying ab upper bound is futile. If you do this as in 1), Dynare will truncate the gamma distribution for mode-finding, but will not use a proper truncated gamma distribution (i.e. will not redistribute the truncated mass). Because of this, your prior will not integrate to 1. Note that this is no problem for estimation, but for model_comparison as the marginal data densities will be wrong.
Thank you very much for your reply.
Could I ask further about what you said?
Q1 : If I understand correctly, even if I set not only lower/uppe bound but also the 3rd and 4th parameter to be 0.6 and 0.9 respectively, the support of the gamma distribution only becomes [0.6, infinity) instead of [0.6,0.9]? (this is unlike beta distribution, since both the upper & lower bound of the support of beta distribution can be changed).
Q2: "Prior integrates to 1" is a sufficent and necessary condition for model comparison(while data is same)?
Q3: In my example 1), if I use beta distribution instead of gamma distribution, like
- Code: Select all
alpha, ,0.6,0.9,beta_pdf,0.8,0.05,0.6,0.9;
,would the prior
integrate to 1?
Q3: If not, could you please give me some advice how I should set the prior to restict it to a range,like[0.5, 1.5] , and at the same time marginal data densities are computed correctly so that I can make model comparison?
So many questions.....Thank you in advance!
Best regards,
Huan