Re: [R] median of gamma distribution

From: Matthias Kohl <Matthias.Kohl_at_stamats.de>
Date: Mon 03 Jul 2006 - 16:06:37 EST


Hi,

to compute the median (or expectation, var, sd, IQR, mad, ...) you can also use package "distrEx". library(distrEx)
(G <- Gammad())
median(G)

Matthias

Betreff: Re: [R] median of gamma distribution Gesendet: Fri, 30. Jun 2006
Von: Ted.Harding@nessie.mcc.ac.uk

> 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
>

--
Dr. rer. nat. Matthias Kohl
Matthias.Kohl@stamats.de
www.stamats.de

______________________________________________
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 Mon Jul 03 21:05:41 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 Mon 03 Jul 2006 - 22:14:53 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.