The function implements the
localGS(x, listw, dmin, dmax, attr, longlat = NULL)
A vector of
a sf
or sp
object
a listw
object
a lower distance bound (greater than or equal)
an upper distance bound (less than or equal)
the name of the attribute of interest
default NULL; TRUE if point coordinates are longitude-latitude decimal degrees, in which case distances are measured in kilometres; if x is a SpatialPoints object, the value is taken from the object itself, and overrides this argument if not NULL; distances are measured in map units if FALSE or NULL
René Westerholt rene.westerholt@tu-dortmund.de
Only pairs of observations with a shared distance (in map units) on the interval [dmin
, dmax
] that are within a maximum radius of dmax
around a corresponding output observation are considered. Thereby, also the mean values and variance terms estimated within the measure are adjusted to the scale range under consideration. For application examples of the method see Westerholt et al. (2015) (applied to tweets) and Sonea & Westerholt (2021) (applied in an access to banking scenario).
Westerholt, R., Resch, B. & Zipf, A. 2015. A local scale-sensitive indicator of spatial autocorrelation for assessing high-and low-value clusters in multiscale datasets. International Journal of Geographical Information Science, 29(5), 868--887, tools:::Rd_expr_doi("10.1080/13658816.2014.1002499").
Sonea, A. and Westerholt, R. (2021): Geographic and temporal access to basic banking services in Wales. Applied Spatial Analysis and Policy, 14 (4), 879--905, tools:::Rd_expr_doi("10.1007/s12061-021-09386-3").
localG
# \donttest{
boston.tr <- sf::st_read(system.file("shapes/boston_tracts.shp", package="spData")[1])
boston.tr_utm <- st_transform(boston.tr, 32619) #26786
boston_listw1 <- nb2listwdist(dnearneigh(st_centroid(boston.tr_utm), 1, 2000),
boston.tr_utm, type = "dpd", alpha = 2, zero.policy = TRUE, dmax = 9500)
boston_listw2 <- nb2listwdist(dnearneigh(st_centroid(boston.tr_utm), 5000, 9500),
boston.tr_utm, type = "dpd", alpha = 2, zero.policy = TRUE, dmax = 9500)
boston_RM_gsi_1 <- localGS(boston.tr_utm, boston_listw1, 1, 2000, "RM", FALSE)
boston_RM_gsi_2 <- localGS(boston.tr_utm, boston_listw2, 2000, 9500, "RM", FALSE)
# }
Run the code above in your browser using DataLab