Pairs x with its spatial lag Wx (or the lag Wy of a second variable);
with row-standardised W the least-squares slope is Moran's I (Anselin
1996). As spdep::moran.plot, the line Wx ~ x is fitted and each
point gets the stats::influence.measures diagnostics (DFBETAS,
DFFIT, COVRATIO, Cook's distance, hat value) and the is_inf
flag of stats::influence.measures.
Usage
MoranScatter(x, W, y = NULL)
Arguments
- x
Numeric vector.
- W
Spatial weights matrix.
- y
Optional second variable whose lag is the vertical axis.
Value
List with x, wx, slope, intercept,
dfb_1, dfb_x, dffit, cov_r,
cook_d, hat, is_inf.
References
Anselin, L. (1996). The Moran scatterplot as an ESDA tool to
assess local instability in spatial association. Spatial Analytical
Perspectives on GIS, 111-125. Taylor and Francis, London.
Belsley, D. A., Kuh, E. and Welsch, R. E. (1980). Regression
Diagnostics. Wiley, New York.
Examples
W <- matrix(c(0, 1, 0, 0, .5, 0, .5, 0, 0, .5, 0, .5, 0, 0, 1, 0), 4, byrow = TRUE)
MoranScatter(c(1, 2, 4, 3), W)$slope
#> [1] 0.3