Global Moran Permutation Test
Arguments
- x
A numeric vector.
- nb
a neighbor list object for example as created by
st_contiguity()
.- wt
a weights list as created by
st_weights()
.- alternative
default
"two.sided"
. Should be one of"greater"
,"less"
, or"two.sided"
to specify the alternative hypothesis.- nsim
number of simulations to run.
- ...
additional arguments passed to
spdep::moran.mc()
See also
Other global_moran:
global_moran_bv()
,
global_moran_test()
,
global_moran()
,
local_moran_bv()
Examples
nb <- guerry_nb$nb
wt <- guerry_nb$wt
x <- guerry_nb$crime_pers
moran <- global_moran_perm(x, nb, wt)
broom::tidy(moran)
#> # A tibble: 1 × 5
#> statistic p.value parameter method alternative
#> <dbl> <dbl> <dbl> <chr> <chr>
#> 1 0.411 0 500 Monte-Carlo simulation of Moran I two.sided