g_map: Local G Map

Description Usage Arguments

View source: R/g_map.R

Description

The function to make local G and G* cluster maps.

Usage

1
2
3
4
5
6
7
8
g_map(
  polys,
  xname,
  weights = NULL,
  permutations = 999,
  alpha = 0.05,
  type = "g"
)

Arguments

polys

An sf dataframe

xname

string, the name of the x variable, this variable must be contained in the sf dataframe

weights

weights structure from spdep, must be style "B"; default is set equal to NULL, and first order queen contiguity weights are used to construct the map

permutations

numeric, number of permutations the conditional randimization approach to significance, maximum is 99999, default is 999

alpha

numeric, cut-off level of significance, must be between 0 and 1, the default is .05

type

string, can be "g" or "gstar"


morrisonge/spatmap documentation built on June 9, 2020, 1:22 p.m.