giniCoef: Calculates the Gini coefficient from quantiles

Description Usage Arguments Details Value References Examples

View source: R/giniCoef.R

Description

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

Usage

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

Details

Calculates the Gini coefficient from quantiles

Value

Returns the Gini coefficient estimate.

References

FIXME - references

Examples

1
#not run, internal function

Example output

Loading required package: gamlss
Loading required package: splines
Loading required package: gamlss.data
Loading required package: gamlss.dist
Loading required package: MASS
Loading required package: nlme
Loading required package: parallel
 **********   GAMLSS Version 5.0-2  ********** 
For more on GAMLSS look at http://www.gamlss.org/
Type gamlssNews() to see new features/changes/bug fixes.

Loading required package: gamlss.cens
Loading required package: survival

binequality documentation built on Nov. 5, 2018, 5:05 p.m.