How to define custom distributions in JAGS?
Asked Answered
E

3

6

I am using JAGS for simulating some MCMC distributions. I see the support for a sizeable set of distributions. But, I would like to sample out of a specific distribution that is not defiend in JAGS. Does anyone know how to write our own custom distributions?

Thanks!

Excavator answered 27/7, 2010 at 8:2 Comment(0)
E
2

From the feedback on the newsgroup, it seems that JAGS is better suited for known distributions and composition of known distributions. Its faster / easier writing your own sampler in R for the rest.

Excavator answered 21/8, 2010 at 4:34 Comment(0)
B
3

Either the "zeroes trick" or the "ones trick" will do the job for you; see the WinBUGS documentation online for how to set these up. (WinBUGS is, as you almost certainly know, almost identical to JAGS syntatically, with a few exceptions noted in the JAGS documentation and irrelevant to the two tricks above.)

Battologize answered 16/9, 2011 at 18:30 Comment(0)
E
2

From the feedback on the newsgroup, it seems that JAGS is better suited for known distributions and composition of known distributions. Its faster / easier writing your own sampler in R for the rest.

Excavator answered 21/8, 2010 at 4:34 Comment(0)
A
-1

Have you looked into WBDev?

http://www.winbugs-development.org.uk/

Ambiguous answered 9/8, 2010 at 23:45 Comment(3)
Here's something I found for Mac: quote.ucsd.edu/blogs/rogblog/2008/01/21/…Ambiguous
More... cddesjardins.wordpress.com/2009/06/15/…; hlplab.wordpress.com/2009/02/27/…Ambiguous
From the feedback on the newsgroup, it seems that JAGS is better suited for known distributions and composition of known distributions. Its faster / easier writing your own sampler in R for the rest.Excavator

© 2022 - 2024 — McMap. All rights reserved.