From bbolker at gmail.com  Tue Jun  5 10:25:20 2012
From: bbolker at gmail.com (Ben Bolker)
Date: Tue, 5 Jun 2012 08:25:20 +0000
Subject: [Rd] Patch to add Beta binomial distribution. Mentor needed!
References: <CANF72pNnfRHOBr_4mvwsk1o1J52hz6LPLEQP6sMjkWOCYX5cOA@mail.gmail.com>
	<A1056BE4-973C-4883-864C-AC1DC800CF7F@gmail.com>
	<CANF72pPh7A5CaSSMNLm05ue_T_pkz_iyRuwpBjoJAGEHrmqphw@mail.gmail.com>
	<CAC+N9BVeicffs1Tspm2LKX7nNA1CctJBtKTyGaK7Sbez4qiLqw@mail.gmail.com>
	<CANF72pNj56U8qgBcppobPTiyKLzTVu6CRfa9DxSUNLJJmeY7DA@mail.gmail.com>
Message-ID: <loom.20120605T102246-250@post.gmane.org>

Joan Maspons <j.maspons <at> creaf.uab.cat> writes:

> 
> 2012/6/1 Tim Triche, Jr. <tim.triche <at> gmail.com>
> 
> > It's in VGAM, remember?  Not a bug.
> >
> > --
> > *A model is a lie that helps you see the truth.*
> > *
> > *
> > Howard Skipper<http://cancerres.aacrjournals.org/content/31/9/1173.full.pdf>
> >
> >
> Yes, it's a wish, not a bug. I would like a faster implementation in c and
> including quantile function. pbetabin calls qbetabin and sums from 0 to q
> using a loop. It can be avoided using genhypergeo function from hypergeo
> package [1] but it adds a dependency and for some parameters it doesn't
> converge.
> 
> In the other hand I think that these functions should be implemented in a
> more neutral place to avoid that packages interested in this distribution
> have to depend on VGAM. I'm also interested in the Beta negative binomial
> distribution which I think it's not implemented (this will be the second
> round). And last but not least I want to learn.

  I really think your chances of getting this wish accepted are tiny.
If you want to avoid additional dependencies, you have at least the 
*legal* right to take any piece of code you want from any open-source
(BSD, GPL, ...) package and package it your own little package 
(provided it follows the rules of the original license) that
includes only the stuff you need, without any other dependencies.  It's
polite to ask for permission and acknowledge the original authors ...

  Ben Bolker



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