From josh.m.ulrich at gmail.com  Tue May 22 16:59:25 2012
From: josh.m.ulrich at gmail.com (Joshua Ulrich)
Date: Tue, 22 May 2012 09:59:25 -0500
Subject: [Rd] Patch to add Beta binomial distribution. Mentor needed!
In-Reply-To: <CANF72pMfLuFdmanqWJpjy5gORo7yDTO8qDgXSc4sXjeYcFrpXw@mail.gmail.com>
References: <CANF72pNnfRHOBr_4mvwsk1o1J52hz6LPLEQP6sMjkWOCYX5cOA@mail.gmail.com>
	<A1056BE4-973C-4883-864C-AC1DC800CF7F@gmail.com>
	<CANF72pMfLuFdmanqWJpjy5gORo7yDTO8qDgXSc4sXjeYcFrpXw@mail.gmail.com>
Message-ID: <CAPPM_gQPMR8Je8JcGeKjTxHKNKnt0=RNgYaP+9k-MEi2aLsbOw@mail.gmail.com>

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
>



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