Learn R Programming

binequality (version 1.0.4)

giniCoef: Calculates the Gini coefficient from quantiles

Description

This function estimates the Gini coefficient using the quantiles sampled from a fitted GAMLSS object.

Usage

giniCoef(seq.i, samps.i)

Arguments

seq.i

a (non-empty) numeric vector of quantile locations.

samps.i

a (non-empty) numeric vector of quantile values.

Value

Returns the Gini coefficient estimate.

Details

Calculates the Gini coefficient from quantiles

References

FIXME - references

Examples

Run this code
# NOT RUN {
#not run, internal function
# }

Run the code above in your browser using DataLab