[Rd] Beta binomial and Beta negative binomial

2012-03-16 Thread Joan Maspons
Hi, I need Beta binomial and Beta negative binomial functions but in R there is only SuppDists package which provide this distributions using a limited parameter space of the generalized hypergeometric distribution (dghyper & Co.) which provide a limited parameter space for Beta binomial and Beta n

Re: [Rd] Beta binomial and Beta negative binomial

2012-03-16 Thread Christophe Dutang
Hi, Please look at the distribution task view (http://cran.r-project.org/web/views/Distributions.html) and the package gamlss.dist. By the way, distributions in R are implemented in /src/nmath directory and not /src/library/stats Regards Christophe -- Christophe Dutang Ph.D. student at ISFA

Re: [Rd] Beta binomial and Beta negative binomial

2012-03-17 Thread Joan Maspons
Hello, El 16 de març de 2012 20:34, Christophe Dutang ha escrit: > Hi, > > Please look at the distribution task view > (http://cran.r-project.org/web/views/Distributions.html) and the package > gamlss.dist. Thanks for the tip. There are Beta binomial functions but they don't have the number o

Re: [Rd] Beta binomial and Beta negative binomial

2012-03-17 Thread Tim Triche, Jr.
use the gsl package for Kummer's hypergeometric and others. you might find implementing the distributions in C or C++ worthwhile for speed. thanks for doing this, by the way. On Sat, Mar 17, 2012 at 11:38 AM, Joan Maspons wrote: > Hello, > > > El 16 de març de 2012 20:34, Christophe Dutang h

Re: [Rd] Beta binomial and Beta negative binomial

2012-03-18 Thread Joan Maspons
El 18 de març de 2012 2:46, Tim Triche, Jr. ha escrit: > use the gsl package for Kummer's hypergeometric and others. I looks nice but I'm a little bit lost. Gsl have 10 hypergeometric functions: hyperg_0F1(c, x, give=FALSE, strict=TRUE) *hyperg_1F1_int(m, n, x, give=FALSE, strict=TRUE) *hyperg_1