global_moran: Calculate Global Moran's I

View source: R/global-measures.R

global_moranR Documentation

Calculate Global Moran's I

Description

Calculate Global Moran's I

Usage

global_moran(x, nb, wt, na_ok = FALSE, ...)

Arguments

x

A numeric vector.

nb

a neighbor list object for example as created by st_contiguity().

wt

a weights list as created by st_weights().

na_ok

default FALSE. If FALSE presence or NA or Inf results in an error.

...

additional arguments passed to spdep::moran().

Value

an htest object

See Also

Other global_moran: global_moran_bv(), global_moran_perm(), global_moran_test(), local_moran_bv()

Examples

nb <- guerry_nb$nb
wt <- guerry_nb$wt
x <- guerry_nb$crime_pers
moran <- global_moran(x, nb, wt)

sfdep documentation built on Sept. 13, 2024, 5:07 p.m.