powered by
Calculate the Gini coefficient from quintile data
giniquintile(L)
vector of percentages at 20th, 40th, 60th, and 80th percentiles
the estimated Gini coefficient
Calculate the Gini coefficient given the quintile data.
Leon Gerber, "A Quintile Rule for the Gini Coefficient", Mathematics Magazine, 80:2, April 2007.
Other integration: adaptint, gaussint, mcint, midpt, revolution-solid, romberg, simp38, simp, trap
adaptint
gaussint
mcint
midpt
revolution-solid
romberg
simp38
simp
trap
Other newton-cotes: adaptint, midpt, romberg, simp38, simp, trap
# NOT RUN { L <- c(4.3, 9.8, 15.4, 22.7) giniquintile(L) # }
Run the code above in your browser using DataLab