spGini.w {lctools} | R Documentation |
Spatial Gini coefficient with a given weights matrix
Description
This is the implementation of the spatial decomposition of the Gini coefficient introduced by Rey and Smith (2013) as in the function spGini. In this function, the calculation of the global Gini and the two components of the spatial Gini is performed using matrix algebra and a ready made weights matrix. Thus, it is possible to use weighting schemes other than those currently supported in spGini.
Usage
spGini.w(x, w)
Arguments
x |
a numeric vector of a variable |
w |
Weights Matrix usin w.matrix or other R function |
Value
Returns a list of five values Gini, gwGini, nsGini, gwGini.frac, nsGini.frac
Gini |
Global Gini |
gwGini |
First component of the spatial Gini: the inequality among nearest (geographically) neighbours |
nsGini |
Second component of the spatial Gini: the inequality among non-neighbours |
gwGini.frac |
The fraction of the first component of the spatial Gini |
nsGini.frac |
The fraction of the second component of the spatial Gini |
Author(s)
Stamatis Kalogirou <stamatis.science@gmail.com>
References
Rey, S.J., Smith, R. J. (2013) A spatial decomposition of the Gini coefficient, Letters in Spatial and Resource Sciences, 6 (2), pp. 55-70.
Kalogirou, S. (2015) Spatial Analysis: Methodology and Applications with R. [ebook] Athens: Hellenic Academic Libraries Link. ISBN: 978-960-603-285-1 (in Greek). https://repository.kallipos.gr/handle/11419/5029?locale=en
Examples
data(GR.Municipalities)
w<-w.matrix(cbind(GR.Municipalities@data$X, GR.Municipalities@data$Y),12,WType='Binary')
spGini.w(GR.Municipalities@data$Income01,w)