On 30-Jun-06 Philip He wrote:
> Doese anyone know a R function to find the median of a gamma
> distribution?

qgamma will do it. Test:

> -log(0.5)
[1] 0.6931472
> qgamma(0.5,1)
[1] 0.6931472

Ted.


--------------------------------------------------------------------
E-Mail: (Ted Harding) <[EMAIL PROTECTED]>
Fax-to-email: +44 (0)870 094 0861
Date: 30-Jun-06                                       Time: 16:53:16
------------------------------ XFMail ------------------------------

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to