Re: [R] median of gamma distribution

From: Ted Harding <Ted.Harding_at_nessie.mcc.ac.uk>
Date: Sat 01 Jul 2006 - 01:53:19 EST


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) <Ted.Harding@nessie.mcc.ac.uk> Fax-to-email: +44 (0)870 094 0861
Date: 30-Jun-06                                       Time: 16:53:16
------------------------------ XFMail ------------------------------

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sat Jul 01 02:06:35 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 01 Jul 2006 - 04:14:36 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.