gf {giniVarCI} | R Documentation |
Gini index for the F distribution with user-defined degrees of freedom
Description
Calculates the Gini index for the F distribution with degrees of freedom (
df1
) and (
df2
).
Usage
gf(df1, df2)
Arguments
df1 |
A positive real number specifying the degrees of freedom |
df2 |
A positive real number higher or equal than two specifying the degrees of freedom |
Details
The F distribution with (argument
df1
) and (argument
df2
) degrees of freedom and denoted as , where
and
, has a probability density function given by (Kleiber and Kotz, 2003; Johnson et al., 1995)
and a cumulative distribution function given by
where ,
is the gamma function,
is the regularized incomplete beta function,
is the beta function, and
is the incomplete beta function.
The Gini index, for , can be computed as
where is the quantile function of the F distribution.
Value
A numeric value with the Gini index. A NA
is returned when degrees of freedom are non-numeric or or
.
Author(s)
Juan F Munoz jfmunoz@ugr.es
Jose M Pavia pavia@uv.es
Encarnacion Alvarez encarniav@ugr.es
References
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.
See Also
gchisq
, ggamma
, ggompertz
, glnorm
Examples
# Gini index for the F distribution with 'df1 = 10' and 'df2 = 20' degrees of freedom.
gf(df1 = 10, df2 = 20)