Last chance! 50% off unlimited learning
Sale ends in
A simple function to compute Geary's C, called by geary.test
and geary.mc
;
geary.intern
is an internal function used to vary the similarity
criterion.
geary(x, listw, n, n1, S0, zero.policy=NULL)
a numeric vector the same length as the neighbours list in listw
a listw
object created for example by nb2listw
number of zones
n - 1
global sum of weights
default NULL, use global option value; if TRUE assign zero to the lagged value of zones without neighbours, if FALSE assign NA
a list with
Geary's C
sample kurtosis of x
Cliff, A. D., Ord, J. K. 1981 Spatial processes, Pion, p. 17.
# NOT RUN {
data(oldcol)
col.W <- nb2listw(COL.nb, style="W")
str(geary(COL.OLD$CRIME, col.W, length(COL.nb), length(COL.nb)-1,
Szero(col.W)))
# }
Run the code above in your browser using DataLab