local_moran | R Documentation |
Calculate the Local Moran's I Statistic
local_moran(x, nb, wt, alpha = 0.05, scale = TRUE, ...)
x |
A numeric vector. |
... |
See |
Other stats:
geary_test()
,
moran_mc()
,
moran_test()
,
st_lag()
,
st_nb_dists()
library(tidyverse) lisa <- sfweight::acs %>% mutate(nb = st_neighbors(geometry), wt = st_weights(nb), moran = local_moran(med_house_income, nb, wt)) pluck(lisa, "moran")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.