
Spatial correlogram over neighbour-graph lag orders
Source:R/LocalSpatialStatistics.R
SpatialCorrelogram.RdFor each lag \(k = 1, \dots, order\) the units at shortest-path
distance exactly \(k\) in the neighbour graph (spdep::nblag) are
coded with style and a global statistic is computed, as
spdep::sp.correlogram: Moran's I with expectation \(-1/(n-1)\)
and its randomisation or normality variance (spdep::moran.test),
Geary's C with expectation 1 (spdep::geary.test), or the Pearson
correlation of x with its lag-k spatial lag. \(n\) in the moments
counts units with a lag-k neighbour. The deviate is
(estimate - expectation) / sqrt(variance) with a two-sided normal
p-value.
Usage
SpatialCorrelogram(
adjacency,
x,
order = 1L,
method = "I",
style = "W",
randomisation = TRUE
)Value
List with estimate, expectation, variance,
z, p_value (by lag; only estimate for
"corr"), n_with_neighbours, method, style.