4.1 Local Neighbor Match Test
Last updated
Was this helpful?
Last updated
Was this helpful?
The local neighbor match test () is a method to identify significant locations by assessing the extent of overlap between k-nearest neighbors in geographical space and k-nearest neighbors in multi-attribute space. For more information, please read
Short version:
Long version:
Full version:
Name
Type
Description
the_geom
geometry
the geometry column (only points and polygons are supported)
vals
anyarray
an array of numeric columns that contains the values for neighbor match test
k
integer
k nearest neighbor for both attribute and geographical space
scale_method
character varying
the scaling method. Options are {'raw', 'standardize', 'demean', 'mad', 'range_standardize', 'range_adjust'}. Default: 'standardize'
distance_method
character varying
the distance method. Options are {'euclidean', 'manhattan'. Default: 'euclidean'.
power
float
the power/exponent corresponds to the number of times the base (dist_band) is used as a factor. Default: 1.
is_inverse
boolean
if apply inverse on distance value. Default: False.
is_arc
boolean
if compute arc distance between two observations. Default: FALSE.
is_mile
boolean
if convert distance unit from mile to kilometer(KM). Default: TRUE.
Type
Description
float[]
an array contains 2 values, which are {'cardinality', 'probability'}
Apply local neighbor match test on 6 nearest neighbors of the variables ["hr60", "ue60"] (homicide and unemployment rate 1960 in ):
Please see chapter '' for how to create a Queen contiguity weights.