Page 1 of 1

sampling from the prior

PostPosted: Wed Aug 08, 2007 3:45 pm
by alterm
Hi,

I want to generate and save draws from the prior distribution. How can I do that?

Thanks

PostPosted: Tue Aug 14, 2007 7:10 pm
by psummers
The easiest way to do this is just to simulate draws using your favorite random number generator. I usually use Jim LeSage's toolbox functions for this: norm_rnd, gamm_rnd, etc. You could then use these draws in a standard .mod file if you like (ie, set up a loop that assigns parameter values from the prior simulations, solve the model, etc.)

You might also want to have a look at the attached in order to see how various distributions are parameterized in Dynare (this was written by Stephane Adjemian, and is available online somewhere, but I don't remember where).

Hop this helps!

PS

PostPosted: Sun Aug 26, 2007 5:21 pm
by alterm
thanks PS, I just thought Dynare can do that for me in the same way it samples from the posterior.