moran_test | R Documentation |
global spatial autocorrelation test
moran_test(sfj, wt = NULL, alternative = "greater", symmetrize = FALSE)
sfj |
An |
wt |
(optional) Spatial weight matrix. Must be a |
alternative |
(optional) Specification of alternative hypothesis as |
symmetrize |
(optional) Whether or not to symmetrize the asymmetrical spatial weight matrix
wt by: 1/2 * (wt + wt'). Default is |
A list utilizing a result
tibble to store the following information for each variable:
MoranI
observed value of the Moran coefficient
EI
expected value of Moran's I
VarI
variance of Moran's I (under normality)
ZI
standardized Moran coefficient
PI
p-value of the test statistic
gzma = sf::read_sf(system.file('extdata/gzma.gpkg',package = 'sdsfun'))
moran_test(gzma)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.