[R] dgamma in WinBUGS and JAGS (rjags)

Seyed Reza Jafarzadeh srjafarzadeh at gmail.com
Wed Jun 25 21:04:04 CEST 2008


Hello,

In WinBUGS 1.4 manual
(http://www.mrc-bsu.cam.ac.uk/bugs/winbugs/manual14.pdf), the gamma
density is presented as dgamma(r,mu) where r and mu are the shape and
rate parameters, respectively. In JAGS (rjags) manual version 1.0.2,
May 9, 2008 (http://www-fis.iarc.fr/~martyn/software/jags/jags_user_manual.pdf),
on page 26 the gamma density is presented as dgamma(mu,r) instead of
dgamma(r,mu). Since JAGS uses the BUGS language, I was wondering if
this is a typo or it is in fact different from WinBUGS.


Thanks,
Reza



More information about the R-help mailing list