Re: [R] source code for dbeta

2015-06-08 Thread Duncan Murdoch
On 07/06/2015 11:05 PM, Varun Sinha wrote: > Hi, > > Thanks a lot. I downloaded the tar.gz file and I found the C code. > > I would really appreciate it if you could field another question: > I have to use sql, and I have to perform various statistical > calculations - like integrate, dbeta etc.

Re: [R] source code for dbeta

2015-06-08 Thread Varun Sinha
Hi, Thanks a lot. I downloaded the tar.gz file and I found the C code. I would really appreciate it if you could field another question: I have to use sql, and I have to perform various statistical calculations - like integrate, dbeta etc. Sql does not have these functions, plus they are very dif

Re: [R] source code for dbeta

2015-06-07 Thread Duncan Murdoch
On 07/06/2015 6:11 PM, Mark Sharp wrote: > Varun, > > If you type dbeta at the command line you get the R source, which in this > case tells you that the code is calling a compiled source. This is indicated > by the line No, that says that the R code (what is shown) is compiled. What indicate

Re: [R] source code for dbeta

2015-06-07 Thread Mark Sharp
Varun, I apologize. I hit send before completing. Look at the source document in the link I provided. dbeta is part of the stats package, which is part of the core R system and I do not think it is available as a standalone package. The linked document provides instructions for finding base R

Re: [R] source code for dbeta

2015-06-07 Thread Mark Sharp
Varun, If you type dbeta at the command line you get the R source, which in this case tells you that the code is calling a compiled source. This is indicated by the line See the following. > dbeta function (x, shape1, shape2, ncp = 0, log = FALSE) { if (missing(ncp)) .Call(C_dbe