powered by
Moran's I is calculated for each polygon based on the neighbor and weight lists.
local_moran(x, nb, wt, alternative = "two.sided", nsim = 499, ...)
a data.frame containing the columns ii, eii, var_ii, z_ii, p_ii, p_ii_sim, and p_folded_sim. For more details please see spdep::localmoran_perm().
data.frame
ii
eii
var_ii
z_ii
p_ii
p_ii_sim
p_folded_sim
spdep::localmoran_perm()
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 "two.sided". Should be one of "greater", "less", or "two.sided" to specify the alternative hypothesis.
"two.sided"
"greater"
"less"
The number of simulations to run.
See ?spdep::localmoran_perm() for more options.
?spdep::localmoran_perm()
local_moran() calls spdep::localmoran_perm() and calculates the Moran I for each polygon. As well as provide simulated p-values.
local_moran()
Other stats: st_lag()
st_lag()
local_moran(guerry_nb$crime_pers, guerry_nb$nb, guerry_nb$wt)
Run the code above in your browser using DataLab