[R] The corresponding Fortran77 codes for R function pt()

Thomas Lumley tlumley at u.washington.edu
Mon Mar 14 19:25:18 CET 2005


On Mon, 14 Mar 2005, tianyue wrote:

> Hi,
>
> I'm trying to find the corresponding Fortran77 subroutines for R function 
> pt(). I tried some Fortran77 subroutines to compute the t distribution 
> function. But none of them are as good as R function pt(). Does anyone can 
> give me some information about it?
>

There is no Fortran subroutine (although some of the C functions are 
translations of Fortran).  The C code is in any R source distribution, in 
src/nmath/pt.c.  It also calls src/nmath/pbeta.c. The comments in the 
code say where the algorithms came from.


 	-thomas




More information about the R-help mailing list