Last data update: 2014.03.03

R: Spatial Gini coefficient with a given weights matrix
spGini.wR 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 <skalo@hua.gr>

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.

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)

Results