powered by
Global C Test
global_c_test(x, nb, wt, randomization = TRUE, allow_zero = NULL, ...)
an htest object
htest
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()
default TRUE. Calculate variance based on randomization. If FALSE, under the assumption of normality.
TRUE
FALSE
If TRUE, assigns zero as lagged value to zone without neighbors.
additional arguments passed to spdep::moran.mc()
spdep::moran.mc()
Other global_c: global_c(), global_c_perm()
global_c()
global_c_perm()
geo <- sf::st_geometry(guerry) nb <- st_contiguity(geo) wt <- st_weights(nb) x <- guerry$crime_pers global_c_test(x, nb, wt)
Run the code above in your browser using DataLab