Re: [Rd] Beta binomial and Beta negative binomial

2012-03-16 Thread Christophe Dutang
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 /src/nmath directory and not /src/library/stats Regards Christophe -- Christophe Dutang Ph.D. student at ISFA

[Rd] Beta binomial and Beta negative binomial

2012-03-16 Thread Joan Maspons
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 n

Re: [Rd] Segfault while calling fexact in C

2012-03-16 Thread Nima Mohammadi
On Fri, Mar 16, 2012 at 3:36 PM, Duncan Murdoch wrote: > I don't think fexact is mentioned in Rmath.h, so it's not a function > designed to be called from a standalone program. > > Duncan Murdoch > > Well, Searching the net, I found out that some else has already un-R-ifyied the fexact.c code. Rep

Re: [Rd] Segfault while calling fexact in C

2012-03-16 Thread Duncan Murdoch
On 12-03-16 5:27 AM, Nima Mohammadi wrote: Hi folks, I'm trying to call an R function (fisher.test) in my program for like a billion times! Though my program is in Python and I feel that using rpy2 to interface R to python doesn't give me satisfactory performance. So I looked into R code and foun

Re: [Rd] Dealing with printf() &c. in third-party library code

2012-03-16 Thread Jon Clayden
On 16 March 2012 00:48, Martin Morgan wrote: > On 03/15/2012 02:24 PM, Jon Clayden wrote: >> >> Martin, >> >> Thanks for your reply. I wonder if you'd be willing to post your >> "my_fprintf" function, since I'm struggling to get around needing to >> use the "stdout" and "stderr" symbols completely

[Rd] Segfault while calling fexact in C

2012-03-16 Thread Nima Mohammadi
Hi folks, I'm trying to call an R function (fisher.test) in my program for like a billion times! Though my program is in Python and I feel that using rpy2 to interface R to python doesn't give me satisfactory performance. So I looked into R code and found out that fisher.test is actually a wrapper