powered by
Calculate Global Moran's I
global_moran(x, nb, wt, na_ok = FALSE, ...)
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 FALSE. If FALSE presence or NA or Inf results in an error.
FALSE
NA
Inf
additional arguments passed to spdep::moran().
spdep::moran()
Other global_moran: global_moran_bv(), global_moran_perm(), global_moran_test(), local_moran_bv()
global_moran_bv()
global_moran_perm()
global_moran_test()
local_moran_bv()
nb <- guerry_nb$nb wt <- guerry_nb$wt x <- guerry_nb$crime_pers moran <- global_moran(x, nb, wt)
Run the code above in your browser using DataLab