spGini.w | R Documentation |
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.
spGini.w(x, w)
x |
a numeric vector of a variable |
w |
Weights Matrix usin w.matrix or other R function |
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 |
Stamatis Kalogirou <stamatis.science@gmail.com>
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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.