powered by
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
htest
mc.sim
A numeric vector.
a neighbor list object for example as created by st_contiguity().
st_contiguity()
a weights list as created by st_weights().
st_weights()
number of simulations to run.
default "two.sided". Should be one of "greater", "less", or "two.sided" to specify the alternative hypothesis.
"two.sided"
"greater"
"less"
If TRUE, assigns zero as lagged value to zone without neighbors.
TRUE
additional arguments passed to spdep::geary.mc().
spdep::geary.mc()
Other global_c: global_c(), global_c_test()
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