a two columns array, data.frame or matrix of spatial coordinates. Column 1 = X, Column 2 = Y.
z
a vector for the values at each location. Must have the same length as the row number of coords
method
the method used. Must be "Moran" (default) or "Geary"
nbclass
number of bins. If NULL Sturges method is used to compute an optimal number
Value
An object of class "correlog", a matrix including:
classbin centers
Ithe coefficient values
p.valueprobability of Ho
nthe number of pairs
Warning
Computing can take a long time for large data sets
Details
Uses the library spdep including moran.test() or geary.test(). These methods assume the data are normally distributed. Distances are euclidian and in the same unit as the spatial coordinates. Moran's Ho: I values larger than 0 due to chance;
Geary's Ho: C values lesser than 1 due to chance. Correlog has print and plot methods; statistically significant values (p