View source: R/global-measures.R
global_g_test | R Documentation |
Getis-Ord Global G
global_g_test(x, nb, wt, alternative = "greater", allow_zero = NULL, ...)
x |
A numeric vector. |
nb |
a neighbor list object for example as created by |
wt |
a weights list as created by |
alternative |
default |
allow_zero |
If |
... |
additional methods passed to |
an htest
object
geo <- sf::st_geometry(guerry)
nb <- st_contiguity(geo)
wt <- st_weights(nb, style = "B")
x <- guerry$crime_pers
global_g_test(x, nb, wt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.