Re: [Rd] Beta binomial and Beta negative binomial

From: Christophe Dutang <dutangc_at_gmail.com>
Date: Fri, 16 Mar 2012 20:34:43 +0100

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 <source>/src/nmath directory and not <source>/src/library/stats

Regards

Christophe

--
Christophe Dutang
Ph.D. student at ISFA, Lyon, France
website: http://dutangc.free.fr

Le 16 mars 2012 Ó 18:41, Joan Maspons a Úcrit :


> 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 negative
> binomial functions (e.g. alpha + beta <1 in the Beta negative binomial).
>
> I've done a checkout to R svn to seek the code for the implementation of
> distribution functions (dbinom et al.) but I haven't succeed. I don't know how
> difficult could be to implement Beta binomial and Beta negative binomial
> functions having the PDF and CDF functions but I'm interested in implementing
> it. I have programming skills but I don't know much about R internals.
>
> Where is the code? Can I implement these new functions inside stats
> package following the
> same patterns as other probability distributions?
>
> Yours,
> --
> Joan Maspons
> CREAF (Centre de Recerca Ecol˛gica i Aplicacions Forestals)
> Universitat Aut˛noma de Barcelona, 08193 Bellaterra (Barcelona), Catalonia
> Tel +34 93 581 2915 j.maspons_at_creaf.uab.cat
> http://www.creaf.uab.cat
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 16 Mar 2012 - 19:38:57 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 17 Mar 2012 - 19:00:30 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive