Truncation of Prior

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.

Truncation of Prior

Postby reubenpjacob » Fri Jun 27, 2008 9:04 am

is it possible to truncate the prior in a bayesian estimation exercise in dynare?
say if you have a normal prior, can you truncate it to cover only the non-negative domain?

reuben
reubenpjacob
 
Posts: 133
Joined: Fri Oct 06, 2006 3:23 pm
Location: Reserve Bank of New Zealand

Postby ilcosmin » Sun Jun 29, 2008 4:19 am

when you declare the prior, you can specify bounds for the parameter. it's done by adding the bounds after the mean and std.dev of the prior
ex:sigma, inv_gamma_pdf, 2, .2, 0.01, 3;
the last two numbers specify the interval you allow the parameter to be in.
Cosmin
ilcosmin
 
Posts: 4
Joined: Sun Jun 25, 2006 10:09 am
Location: Evanston

Postby reubenpjacob » Sun Jun 29, 2008 1:18 pm

thanks. does the truncation guarantee that the prior density will integrate to unity? if you truncate it, the constant of integration would change, right.


reuben
reubenpjacob
 
Posts: 133
Joined: Fri Oct 06, 2006 3:23 pm
Location: Reserve Bank of New Zealand

Postby ilcosmin » Mon Jun 30, 2008 12:26 am

You're right. I am not sure, but the integration to unity should happen by changing the constant.
Cosmin
ilcosmin
 
Posts: 4
Joined: Sun Jun 25, 2006 10:09 am
Location: Evanston


Return to Dynare help

Who is online

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