gfrechet | R Documentation |
Calculates the Gini indices for the Frechet distribution with shape
parameters s
.
gfrechet(shape)
shape |
A vector of positive real numbers higher or equal than 1 specifying shape parameters |
The Frechet distribution with location parameter a
, scale parameter b
, shape
parameter s
and denoted as Frechet(a,b,s)
, where a>0
, b>0
and s>0
, has a
probability density function given by (Kleiber and Kotz, 2003; Johnson et al., 1995)
f(y) = \displaystyle \frac{sb}{(y-a)^{2}} \left(\frac{b}{y-a}\right)^{s-1} \exp\left[- \displaystyle \left(\frac{b}{y-a}\right)^{s} \right],
and a cumulative distribution function given by
F(y)= \displaystyle \exp\left[- \displaystyle \left(\frac{b}{y-a}\right)^{s} \right],
where y > a
.
The Gini index, for s \geq 1
, can be computed as
G = 2^{1/s} -1.
A numeric vector with the Gini indices. A NA
is returned when a shape parameter is non-numeric or smaller than 1.
The Gini index of the Frechet distribution does not depend on its location and scale parameters and only is defined when its shape parameter is at least 1.
Juan F Munoz jfmunoz@ugr.es
Jose M Pavia pavia@uv.es
Encarnacion Alvarez encarniav@ugr.es
Kleiber, C. and Kotz, S. (2003). Statistical Size Distributions in Economics and Actuarial Sciences, Hoboken, NJ, USA: Wiley-Interscience.
Johnson, N. L., Kotz, S. and Balakrishnan, N. (1995) Continuous Univariate Distributions, volume 1, chapter 14. Wiley, New York.
gdagum
, gburr
, gfisk
, gpareto
, ggompertz
# Gini index for the Frechet distribution with a shape parameter 's = 1'.
gfrechet(shape = 1)
# Gini indices for the Frechet distribution and different shape parameters.
gfrechet(shape = 1:10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.