Calculate univariate (canonical) Moran's I.
UnivariateMoransI(
X,
W,
normalize = TRUE,
alternative = c("two.sided", "less", "greater"),
p.adjust.method = "BH"
)
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 normalize the weight matrix such that each row adds up to one. Default is TRUE
.
Alternative hypothesis used, default is two.sided
.
Method used for multiple comparisons correction, default is BH
. See p.adjust
.
A list containing the following:
Morans.I, the Moran's I.
Z.I, the Z score of Moran's I.
X, data matrix used for calculating Moran's I.
Y, a matrix of spatial lags.
Expected.I, the expectation of Moran's I under the null hypothesis.
SD.I, the standard deviation of Moran's I under the null hypothesis.
p.val, p-values.
p.adj, adjusted p-values.
normalize, whether to normalize the weight matrix.
alternative, alternative hypothesis used.
p.adjust.method, method used for multiple comparisons correction.
Moran, P. A. P. Notes on continuous stochastic phenomena. Biometrika 37, 17–23 (1950)