gini.2007: Gini Coefficient

Description Usage Arguments Value Note See Also Examples

View source: R/gini.2007.R

Description

To calculate the Gini coefficient according to the following literature: Jianhua Zhang. An easy-to-use method for calculating the Gini coefficient. Journal of Shanxi Agricultural University (Social Science Edition)(in Chinese), 2007, 6(3): 275-278,283.

Usage

1

Arguments

x

vector, population of each region

y

vector, health resource of each region

group

integer, the number of groups, usually 5 to 10

Value

G

Gini coefficient. Critria: <0.3=best fairness, 0.3-0.4=relative fairness, >0.4=unfairness, >0.6=highly unfair

Note

Please feel free to contact us, if you have any advice and find any bug!

Update:

Version 0.1.0: The first version.

See Also

gini.1994 gini.1997 gini.2000 gini.2002 gini gini.1994b

Examples

1
2
3
x=c(382.8,522.7,192.4,227.4,490.2,108.0,222.5,220.5,231.2,375.3,323.9,79.9,305.7,98.7,46.1,35.3)
y=c(2778,3333,1673,1708,2118,1077,1850,1557,2010,2587,2482,616,2010,936,633,582)
gini.2007(x,y)#0.1216807

Gini documentation built on Sept. 13, 2021, 5:06 p.m.

Related to gini.2007 in Gini...