Title: | Gini Coefficient |
---|---|
Description: | Providing various equations to calculate Gini coefficients. The methods used in this package can be referenced from Brown MC (1994) <doi: 10.1016/0277-9536(94)90189-9>. |
Authors: | Zhicheng Du [aut, cre, cph], Zebing Chen [aut], Yuantao Hao [aut] |
Maintainer: | Zhicheng Du <[email protected]> |
License: | GPL-3 |
Version: | 0.1.0 |
Built: | 2025-02-14 02:54:13 UTC |
Source: | https://github.com/cran/Gini |
To calculate the Gini coefficient according to the following literature: Brown MC. Using Gini-style indices to evaluate the spatial patterns of health practitioners: theoretical considerations and an application based on Alberta data. Soc Sci Med, 1994, 38(9): 1243-1256.
gini(x,y)
gini(x,y)
x |
vector, population of each region |
y |
vector, health resource of each region |
G |
Gini coefficient. Critria: <0.3=best fairness, 0.3-0.4=relative fairness, >0.4=unfairness, >0.6=highly unfair |
Please feel free to contact us, if you have any advice and find any bug!
Update:
Version 0.1.0: The first version.
gini.1994
gini.1997
gini.2000
gini.2002
gini.2007
gini.1994b
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(x,y)#0.1216807
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(x,y)#0.1216807
To calculate the Gini coefficient according to the following literature: Hansheng Ding, Shanlian Hu. A study on the equity of distribution of health resources in China(in Chinese). Zhongguo Wiesheng Shiye Guanli, 1994, (2): 105-107.
gini.1994(x,y)
gini.1994(x,y)
x |
vector, population of each region |
y |
vector, health resource of each region |
G |
Gini coefficient. Critria: <0.3=best fairness, 0.3-0.4=relative fairness, >0.4=unfairness, >0.6=highly unfair |
Please feel free to contact us, if you have any advice and find any bug!
Update:
Version 0.1.0: The first version.
gini
gini.1997
gini.2000
gini.2002
gini.2007
gini.1994b
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.1994(x,y)#0.1216807
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.1994(x,y)#0.1216807
To calculate the Gini coefficient according to the following literature: Brown MC. Using Gini-style indices to evaluate the spatial patterns of health practitioners: theoretical considerations and an application based on Alberta data. Soc Sci Med, 1994, 38(9): 1243-1256.
gini.1994b(x,y)
gini.1994b(x,y)
x |
vector, population of each region |
y |
vector, health resource of each region |
G |
Gini coefficient. Critria: <0.3=best fairness, 0.3-0.4=relative fairness, >0.4=unfairness, >0.6=highly unfair |
Please feel free to contact us, if you have any advice and find any bug!
Update:
Version 0.1.0: The first version.
gini.1994
gini.1997
gini.2000
gini.2002
gini.2007
gini.1994b
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.1994b(x,y)#0.1216807
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.1994b(x,y)#0.1216807
To calculate the Gini coefficient according to the following literature: Weiguo Shi. A simple method of calculating the Gini coefficient(in Chinese). Jiangsu Tongji, 1997, (2): 16-18.
gini.1997(x,y)
gini.1997(x,y)
x |
vector, population of each region |
y |
vector, health resource of each region |
G |
Gini coefficient. Critria: <0.3=best fairness, 0.3-0.4=relative fairness, >0.4=unfairness, >0.6=highly unfair |
Please feel free to contact us, if you have any advice and find any bug!
Update:
Version 0.1.0: The first version.
gini.1994
gini
gini.2000
gini.2002
gini.2007
gini.1994b
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.1997(x,y)#0.1216807
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.1997(x,y)#0.1216807
To calculate the Gini coefficient according to the following literature: Jianlin Dai. How the Gini coefficient is calculated. Zhejiang Tongji, 2000, (3): 37.
gini.2000(x,y)
gini.2000(x,y)
x |
vector, population of each region |
y |
vector, health resource of each region |
G |
Gini coefficient. Critria: <0.3=best fairness, 0.3-0.4=relative fairness, >0.4=unfairness, >0.6=highly unfair |
Please feel free to contact us, if you have any advice and find any bug!
Update:
Version 0.1.0: The first version.
gini.1994
gini.1997
gini
gini.2002
gini.2007
gini.1994b
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.2000(x,y)#0.1216807
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.2000(x,y)#0.1216807
To calculate the Gini coefficient according to the following literature: Rihong Zang. Economics. Beijing: China Agricultural University Press, 2002, 201-202.
gini.2002(x,y)
gini.2002(x,y)
x |
vector, population of each region |
y |
vector, health resource of each region |
G |
Gini coefficient. Critria: <0.3=best fairness, 0.3-0.4=relative fairness, >0.4=unfairness, >0.6=highly unfair |
Please feel free to contact us, if you have any advice and find any bug!
Update:
Version 0.1.0: The first version.
gini.1994
gini.1997
gini.2000
gini
gini.2007
gini.1994b
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.2002(x,y)#0.1216807
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.2002(x,y)#0.1216807
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.
gini.2007(x,y,group)
gini.2007(x,y,group)
x |
vector, population of each region |
y |
vector, health resource of each region |
group |
integer, the number of groups, usually 5 to 10 |
G |
Gini coefficient. Critria: <0.3=best fairness, 0.3-0.4=relative fairness, >0.4=unfairness, >0.6=highly unfair |
Please feel free to contact us, if you have any advice and find any bug!
Update:
Version 0.1.0: The first version.
gini.1994
gini.1997
gini.2000
gini.2002
gini
gini.1994b
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
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