Re: [R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread Wang, Zhu
, 2020 1:43 PM To: Wang, Zhu ; Ben Bolker ; r-package-devel@r-project.org Subject: RE: [R-pkg-devel] incomplete gamma function Fortran subroutine As others have said, built-in function pgamma is a (normalized) version of the incomplete gamma function! John -Original Message- From: R-package

Re: [R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread Wang, Zhu
Thanks Steven. Zhu From: Steven Scott Sent: Tuesday, July 21, 2020 1:30 PM To: Wang, Zhu Cc: Ben Bolker ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] incomplete gamma function Fortran subroutine You can often find this kind of code on netlib.org<http://netlib.org>. Just i

Re: [R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread John P. Nolan
Sent: Tuesday, July 21, 2020 12:54 PM To: r-package-devel@r-project.org Subject: Re: [R-pkg-devel] incomplete gamma function Fortran subroutine Is there a reason not to use pgamma(), possibly adjusted by a (de-)normalizing constant? (See detailed notes in ?pgamma) On 7/21/20 1:44 PM, Wang

Re: [R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread Steven Scott
Original Message- > From: R-package-devel On Behalf > Of Ben Bolker > Sent: Tuesday, July 21, 2020 12:54 PM > To: r-package-devel@r-project.org > Subject: Re: [R-pkg-devel] incomplete gamma function Fortran subroutine > > Is there a reason not to use pgamm

Re: [R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread Wang, Zhu
] incomplete gamma function Fortran subroutine     Is there a reason not to use pgamma(), possibly adjusted by a (de-)normalizing constant?   (See detailed notes in ?pgamma) On 7/21/20 1:44 PM, Wang, Zhu wrote: > Hello, > > In an R function within a package, I would like to call a Fortran s

Re: [R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread Bert Gunter
BTW, if you search for "incomplete gamma function" on Rseek.org, you will find whole packages for this. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Tue,

Re: [R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread Bert Gunter
Why? -- see ?dgamma See also the section on including fortran code in "Writing R Extensions," which should be your first port of call for such questions. If neither of these is what you need, it may be helpful if you explain why not. Bert Gunter "The trouble with having an open mind is that

Re: [R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread Ben Bolker
    Is there a reason not to use pgamma(), possibly adjusted by a (de-)normalizing constant?   (See detailed notes in ?pgamma) On 7/21/20 1:44 PM, Wang, Zhu wrote: Hello, In an R function within a package, I would like to call a Fortran subroutine to compute lower gamma function. Any advice

[R-pkg-devel] incomplete gamma function Fortran subroutine

2020-07-21 Thread Wang, Zhu
Hello, In an R function within a package, I would like to call a Fortran subroutine to compute lower gamma function. Any advice will be appreciated. Thanks! Zhu Wang [[alternative HTML version deleted]] __ R-package-devel@r-project.org