[Rd] Patch to add Beta binomial distribution. Mentor needed!

Joshua Ulrich josh.m.ulrich at gmail.com
Tue May 22 16:59:25 CEST 2012


On Tue, May 22, 2012 at 8:27 AM, Joan Maspons <j.maspons at creaf.uab.cat> wrote:
> Hello,
>
> 2012/5/22 Christophe Dutang <dutangc at gmail.com>
>
>> Dear Joan,
>>
<snip>
>> If you want to contribute to R, you should write a package and submit it
>> to CRAN. See http://cran.r-project.org/doc/manuals/R-exts.html
>>
>
> It's necessary to develop a package before to add the functions to R-base?
> I just want to add beta binomial and beta negative binomial distributions
> which from my point of view are not more strange than distributions
> included in R-base. I think they are quite common in order to simulate a
> binomial or negative binomial process in an stochastic environment.
>
In order to add functions to the main R distribution, you have to
convince someone on R-core to maintain the code.

> In the other hand I have no experience in writing packages so it would take
> me more time.
>
The actuar package contains many additional distributions.  You might
see if the maintainer(s) would be interested in incorporating your
code (if they don't have that functionality already).

> Yours,
> Joan
>
> Regards
>>
>> Christophe
>>
>> --
>> Christophe Dutang
>> Ph.D. student at ISFA, Lyon, France
>> website: http://dutangc.free.fr
>>
>> Le 22 mai 2012 à 12:14, Joan Maspons a écrit :
>>
>> > Hello,
>> >
>> > I implemented the Beta binomial distribution following the patterns of
>> the
>> > binomial distribution code and inspired by JAGS' code [1]. I have studied
>> > the code carefully but it's my first run in the R internals.
>> >
>> > Can somebody review the code and if everything it's ok commit to the
>> > repository?
>> >
>> > [1]
>> >
>> http://mcmc-jags.hg.sourceforge.net/hgweb/mcmc-jags/mcmc-jags/file/15af65a4be29/src/modules/bugs/distributions/DBetaBin.cc
>> >
>> >
>> > --
>> > 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
>>
>>
>
>
> --
> 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
>
>        [[alternative HTML version deleted]]
>
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



More information about the R-devel mailing list