Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: gamma

From   David Hoaglin <>
Subject   Re: st: gamma
Date   Mon, 15 Oct 2012 07:22:27 -0400


digamma() is the first derivative of the gamma function, and
trigamma() is the second derivative.

David Hoaglin

On Mon, Oct 15, 2012 at 5:47 AM, Jason Rosenberg <> wrote:
> Sorry to continue this thread,
> but I read the help function guide and help lngamma(), but I still get different results for the gamma function from that of RGui(32-bit) as in:
> I type this in stata:
> di lngamma(3/4)
> and get:
> .20328095
> but in R I get gamma(3/4)=1.225417
> I've tried digamma() and trigamma() in stata just to see and they of course also give me different results.
> any advice? I am modeling equations and it would be very helpful not to jump in between R and stata
> Also I'm sure the one R is evaluating is the correct one for my purposes.
*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index