Dear expeRts, I would like to find out how R computes pbinom(). A grep in the source code reveiled src/library/stats/R/distn.R:146: .External(C_pbinom, q, size, prob, lower.tail, log.p), so 'C_pbinom' refers to compiled C/C++ code loaded into R. Where can I find the source code of C_pbinom? Cheers, Marius
On Aug 26, 2014, at 8:14 PM, Marius Hofert wrote:> Dear expeRts, > > I would like to find out how R computes pbinom(). A grep in the > source code reveiled src/library/stats/R/distn.R:146: > .External(C_pbinom, q, size, prob, lower.tail, log.p), so > 'C_pbinom' refers to compiled C/C++ code loaded into R. Where can > I find the source code of C_pbinom? >> www.r-project.org/doc/Rnews/Rnews_2006-4.pdfPages 43-54 -- David Winsemius, MD Alameda, CA, USA
R FAQ 7.40 http://cran.r-project.org/doc/FAQ/R-FAQ.html#How-do-I-access-the-source-code-for-a-function_003f Sarah On Tuesday, August 26, 2014, Marius Hofert <marius.hofert at math.ethz.ch> wrote:> Dear expeRts, > > I would like to find out how R computes pbinom(). A grep in the > source code reveiled src/library/stats/R/distn.R:146: > .External(C_pbinom, q, size, prob, lower.tail, log.p), so > 'C_pbinom' refers to compiled C/C++ code loaded into R. Where can > I find the source code of C_pbinom? > > Cheers, > > Marius > >-- Sarah Goslee http://www.stringpage.com http://www.sarahgoslee.com http://www.functionaldiversity.org [[alternative HTML version deleted]]