local_moran | R Documentation |
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, ...)
x |
A numeric vector. |
nb |
a neighbor list object for example as created by |
wt |
a weights list as created by |
alternative |
default |
nsim |
The number of simulations to run. |
... |
See |
local_moran()
calls spdep::localmoran_perm()
and calculates the Moran I for each polygon. As well as provide simulated p-values.
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()
.
Other stats:
st_lag()
local_moran(guerry_nb$crime_pers, guerry_nb$nb, guerry_nb$wt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.