sampling from the 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.

sampling from the prior

Postby alterm » Wed Aug 08, 2007 3:45 pm

Hi,

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

Thanks
alterm
 
Posts: 2
Joined: Wed Aug 08, 2007 3:40 pm

Postby psummers » Tue Aug 14, 2007 7:10 pm

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
Attachments
Distributions.pdf
(171.88 KiB) Downloaded 131 times
psummers
 
Posts: 15
Joined: Mon Sep 05, 2005 8:59 am
Location: Texas Tech University

Postby alterm » Sun Aug 26, 2007 5:21 pm

thanks PS, I just thought Dynare can do that for me in the same way it samples from the posterior.
alterm
 
Posts: 2
Joined: Wed Aug 08, 2007 3:40 pm


Return to Dynare help

Who is online

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