View source: R/local-moran-bv-impl.R
local_moran_bv | R Documentation |
Given two continuous numeric variables, calculate the bivariate Local Moran's I.
local_moran_bv(x, y, nb, wt, nsim = 499)
x |
a numeric vector of same length as |
y |
a numeric vector of same length as |
nb |
a neighbor list object for example as created by |
wt |
a weights list as created by |
nsim |
the number of simulations to run. |
The Bivariate Local Moran, like its global counterpart, evaluates the value of x at observation i with its spatial neighbors' value of y. The value of
I_i^B
is just xi * Wyi. Or, in simpler words the local bivariate Moran is the result of multiplying x by the spatial lag of y. Formally it is defined as
I_i^B= cx_i\Sigma_j{w_{ij}y_j}
a data.frame
containing two columns Ib
and p_sim
containing the local bivariate Moran's I and simulated p-values respectively.
Local Spatial Autocorrelation (3): Multivariate Local Spatial Autocorrelation, Luc Anselin
Other global_moran:
global_moran()
,
global_moran_bv()
,
global_moran_perm()
,
global_moran_test()
x <- guerry_nb$crime_pers
y <- guerry_nb$wealth
nb <- guerry_nb$nb
wt <- guerry_nb$wt
local_moran_bv(x, y, nb, wt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.