| 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:
MoranIobserved value of the Moran coefficient
EIexpected value of Moran's I
VarIvariance of Moran's I (under normality)
ZIstandardized Moran coefficient
PIp-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.