global_c_test: Global C Test

View source: R/global-measures.R

global_c_testR Documentation

Global C Test

Description

Global C Test

Usage

global_c_test(x, nb, wt, randomization = TRUE, allow_zero = NULL, ...)

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().

randomization

default TRUE. Calculate variance based on randomization. If FALSE, under the assumption of normality.

allow_zero

If TRUE, assigns zero as lagged value to zone without neighbors.

...

additional arguments passed to spdep::moran.mc()

Value

an htest object

See Also

Other global_c: global_c(), global_c_perm()

Examples

geo <- sf::st_geometry(guerry)
nb <- st_contiguity(geo)
wt <- st_weights(nb)
x <- guerry$crime_pers
global_c_test(x, nb, wt)

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