spGini.w: 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)
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
Arguments
x
a numeric vector of a variable
w
Weights Matrix usin w.matrix or other R function
Author
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.