Re: [R] qbeta function in R

2012-03-09 Thread R. Michael Weylandt
It's here (search the sources for the appropriately named qbeta.c) but I can't guarantee you'll understand it easily: Martin Maechler (and others) works hard to make these the best in the business, but that performance comes at a price, here paid in opacity: http://svn.r-project.org/R/trunk/src/nm

Re: [R] qbeta function in R

2012-03-09 Thread Anamika Chaudhuri
Hi David: Thanks, I actually realized it was error on my part. I didnt think there was a problem with R-code, just wanted to get a better understanding of the function qbeta. Anamika On Fri, Mar 9, 2012 at 3:04 PM, David Winsemius wrote: > > On Mar 9, 2012, at 2:48 PM, Anamika Chaudhuri wrote:

Re: [R] qbeta function in R

2012-03-09 Thread William Dunlap
t.org] On > Behalf > Of Anamika Chaudhuri > Sent: Friday, March 09, 2012 11:48 AM > To: r-help@r-project.org > Subject: [R] qbeta function in R > > HI All: > > Does anyone know the code behind the qbeta function in R? > I am using it to calculate exact confidence inte

Re: [R] qbeta function in R

2012-03-09 Thread David Winsemius
On Mar 9, 2012, at 2:48 PM, Anamika Chaudhuri wrote: HI All: Does anyone know the code behind the qbeta function in R? Well, yes, but don't you think it would be wise to question whether your code might be the problem rather than the R code? I am using it to calculate exact confidence i

[R] qbeta function in R

2012-03-09 Thread Anamika Chaudhuri
HI All: Does anyone know the code behind the qbeta function in R? I am using it to calculate exact confidence intervals and I am getting 'NaN' at places I shouldnt be. Heres the simple code I am using: k<-3 > x<-NULL > p<-rbeta(k,3,3)# so that the mean nausea rate is alpha/(alpha+beta) > min<-10