R/local.R
PermutationGi.Rd
Calculate permutation based p-value for Getis-Ord Gi or Gi* statistics.
PermutationGi(
x,
W,
gstar = TRUE,
n = 999,
seed = 1,
alternative = c("two.sided", "less", "greater"),
p.adjust.method = "BH",
return.permutation = FALSE,
condition = 0
)
A numerical vector.
A weight matrix across all observations, i.e inverse of a pairwise distance matrix.
Whether to calculate the Gi* statistics, default is TRUE
.
The number of permutations to be conducted, set to 999 by default.
Random seed used. Default is 1.
Alternative hypothesis used, default is two.sided
.
Method used for multiple comparisons correction, default is BH
. See p.adjust
.
Return permutations. Default is FALSE
.
Value under null hypothesis to compare with, default is 0.
A list containing the following:
Gi, Gi or Gi* statistics.
p.val, permutation based p-value.
p.adj, adjusted p-values.
return.permutation, permutation used if returned.
params, parameters used to calculate local Moran's I.