[R] median of gamma distribution

Thomas Lumley tlumley at u.washington.edu
Fri Jun 30 17:49:25 CEST 2006

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 


More information about the R-help mailing list