Re: [R] median of gamma distribution

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Sat 01 Jul 2006 - 01:49:25 EST

On Fri, 30 Jun 2006, Philip He wrote:

> Doese anyone know a R function to find the median of a gamma distribution?
>

It's not clear what you mean. If you know the parameters of a gamma distribution then qgamma() will give you any quantile.

If you have data and want to estimate the median then it's hard to beat median(), but you could use mle() to estimate the parameters and then qgamma().

         -thomas



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 01:53:57 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 - 02:14:09 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.