| local_moran {sfdep} | R Documentation |
Calculate the Local Moran's I Statistic
Description
Moran's I is calculated for each polygon based on the neighbor and weight lists.
Usage
local_moran(x, nb, wt, alternative = "two.sided", nsim = 499, ...)
Arguments
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 |
Details
local_moran() calls spdep::localmoran_perm() and calculates the Moran I for each polygon. As well as provide simulated p-values.
Value
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().
See Also
Other stats:
st_lag()
Examples
local_moran(guerry_nb$crime_pers, guerry_nb$nb, guerry_nb$wt)
[Package sfdep version 0.2.4 Index]