A local indicator of spatial association based on the Geary Ratio (Geary's C) for exploratory spatial data analysis. Large values of this statistic highlight local outliers, that is, values that are not like their neighbors.
Chun, Yongwan, and Daniel A. Griffith. Spatial Statistics and Geostatistics: Theory and Applications for Geographic Information Science and Technology. Sage, 2013.
x: Numeric vector of length n. By default, this will be standardized using the scale function.
w: An n x n spatial connectivity matrix. See shape2mat .
digits: Number of digits to round results to.
scale: If TRUE, then x will automatically be standardized using scale(x, center = TRUE, scale = TRUE).
na.rm: If na.rm = TRUE, observations with NA values will be dropped from both x and w.
warn: If FALSE, no warning will be printed to inform you when observations with NA values have been dropped, or if any observations without neighbors have been found.
Returns
The function returns a vector of numeric values, each value being a local indicator of spatial association (or dissimilarity), ordered as x.
Details
Local Geary's C is found in the numerator of the Geary Ratio (GR). For the ith observation, the local Geary statistic is
Ci=j∑wi,j∗(xi−xj)2
Hence, local Geary values will be largest for those observations that are most unlike their neighboring values. If a binary connectivity matrix is used (rather than row-standardized), then having many neighbors can also increase the value of the local Geary statistic. For most purposes, the row-standardized spatial weights matrix may be the more appropriate choice.