inverse Gaussian distribution

If you are seeking RATS code for implementing a particular technique or replicating results from a paper, post your request here. Be sure to include complete citations for any papers or books.
tclark
Posts: 99
Joined: Wed Nov 08, 2006 3:20 pm

inverse Gaussian distribution

Unread post by tclark »

Has anyone by chance worked out how to draw in RATS from an inverse Gaussian distribution? Drawing from this distribution shows up in Gibbs samplers for Bayesian quantile regression. Thanks.
Todd Clark
Economic Research Dept.
Federal Reserve Bank of Cleveland
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: inverse Gaussian distribution

Unread post by TomDoan »

That's a fairly straightforward function (attached). This is based on the Java code on the wikipedia page for the distribution.
Attachments
raninvgaussian.src
Procedure file for function
(718 Bytes) Downloaded 851 times
tclark
Posts: 99
Joined: Wed Nov 08, 2006 3:20 pm

Re: inverse Gaussian distribution

Unread post by tclark »

Terrific -- thanks very much!
Todd Clark
Economic Research Dept.
Federal Reserve Bank of Cleveland
Post Reply