Hi,
to compute the median (or expectation, var, sd, IQR, mad, ...) you can also use
package distrEx.
library(distrEx)
(G - Gammad())
median(G)
Matthias
- original Nachricht
Betreff: Re: [R] median of gamma distribution
Gesendet: Fri, 30. Jun 2006
Von: [EMAIL PROTECTED]
On 30
Doese anyone know a R function to find the median of a gamma distribution?
[[alternative HTML version deleted]]
__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
Philip He [EMAIL PROTECTED] writes:
Doese anyone know a R function to find the median of a gamma distribution?
qgamma(0.5, )
--
O__ Peter Dalgaard Ă˜ster Farimagsgade 5, Entr.B
c/ /'_ --- Dept. of Biostatistics PO Box 2099, 1014 Cph. K
(*) \(*) -- University of
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
From: Philip He [EMAIL PROTECTED]
Date: Fri Jun 30 10:30:28 CDT 2006
To: R help list r-help@stat.math.ethz.ch
Subject: [R] median of gamma distribution
someone might know a more elegant way but one way
is to use the distribution ( i think it's dnorm for
the normal but i get confused because
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