moran_test: Conduct a Moran's I test

View source: R/moran_test.R

moran_testR Documentation

Conduct a Moran's I test

Description

Conduct a Moran's I test

Usage

moran_test(data, x, nb, wt, ...)

See Also

Other stats: geary_test(), local_moran(), moran_mc(), st_lag(), st_nb_dists()

Examples

acs %>%
  mutate(nb = st_neighbors(geometry),
       wt = st_weights(nb)) %>%
  moran_test(bach, nb, wt)

JosiahParry/sfweight documentation built on April 4, 2022, 1:52 a.m.