[R] Incomplete Beta

(Ted Harding) Ted.Harding at nessie.mcc.ac.uk
Tue Dec 13 17:18:37 CET 2005


On 13-Dec-05 Thomas Lumley wrote:
> On Tue, 13 Dec 2005, Albert Sorribas wrote:
> 
>>
>> Is there any function available in R for computing the incomplete Beta
>> function?
> 
> pbeta().  The incomplete Beta function is the cdf of the Beta 
> distribution

But don't forget to multiply by beta(,):

  ibeta(x,a,b) <- function(x,a,b){ pbeta(x,a,b)*beta(a,b) }

!

Best wishes,
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at nessie.mcc.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 13-Dec-05                                       Time: 16:18:35
------------------------------ XFMail ------------------------------




More information about the R-help mailing list