powered by
Calculate theoretical expectation and standard deviation of local Moran's I under the null hypothesis.
LocalMoransIStats(X, W, scale = FALSE)
A matrix with observations as rows and features as columns.
A weight matrix across all observations, i.e inverse of a pairwise distance matrix.
Whether to scale the data. Default is FALSE.
FALSE
A list containing the following:
E.I, the expectation of local Moran's I under the null hypothesis.
SD.I, the standard deviation of local Moran's I under the null hypothesis.
Anselin, L. Local indicators of spatial association-LISA. Geogr. Anal. 27, 93<U+2013>115 (1995)
Sokal, R. R., Oden, N. L. & Thomson, B. A. Local spatial autocorrelation in a biological model. Geogr. Anal. 30, 331<U+2013>354 (1998)
# NOT RUN { { data.use <- quakes[1:100,] W <- 1/as.matrix(dist(data.use[,1:2])) diag(W) <- 0 res <- LocalMoransIStats(data.use[,3:4], W) } # }
Run the code above in your browser using DataLab