
Last chance! 50% off unlimited learning
Sale ends in
Global C Permutation Test
global_c_perm(
x,
nb,
wt,
nsim = 499,
alternative = "greater",
allow_zero = NULL,
...
)
an object of classes htest
and mc.sim
A numeric vector.
a neighbor list object for example as created by st_contiguity()
.
a weights list as created by st_weights()
.
number of simulations to run.
default "two.sided"
. Should be one of "greater"
, "less"
, or "two.sided"
to specify the alternative hypothesis.
If TRUE
, assigns zero as lagged value to zone without neighbors.
additional arguments passed to spdep::geary.mc()
.
Other global_c:
global_c()
,
global_c_test()
geo <- sf::st_geometry(guerry)
nb <- st_contiguity(geo)
wt <- st_weights(nb)
x <- guerry$crime_pers
global_c_perm(x, nb, wt)
Run the code above in your browser using DataLab