Calculate permutation based p-value for Moran's I.
PermutationMoransI(
x,
W,
n = 999,
seed = 1,
normalize = TRUE,
return.permutation = FALSE
)
A numerical vector.
A weight matrix across all observations, i.e inverse of a pairwise distance matrix.
The number of permutations to be conducted, set to 999 by default.
Random seed used. Default is 1.
Whether to normalize the weight matrix such that each row adds up to one. Default is TRUE
.
Return permutations. Default is FALSE
.
A list containing the following:
Morans.I, the Moran's I.
p.val, permutation based p-value.
return.permutation, permutation used if returned.