Given a from-feature (event for which we want to estimate the spatial association with the
to-feature) and a to-feature (event in relation to which we want to estimate the spatial
association for the from-feature), the assessment is performed by means of a randomized
procedure:
-keeping fixed the location of the to-feature, random from-features are drawn B times (the number
of randomized from-features is equal to the number of observed from-features); -for each draw,
the minimum distance to the to-features is calculated; if the to-feature is made up of polygons,
the from-features falling within a polygon will have a distance of 0; -a cumulative
distribution of random minimum distances is thus obtained; -the cumulative random minimum
distances are used to work out an acceptance interval (with significance level equal to 0.05;
sensu Baddeley et al., "Spatial Point Patterns. Methodology and Applications with R", CRC Press
2016, 208) that allows to assess the statistical significance of the cumulative distribution of
the observed minimum distances, and that is built using the above-mentioned B realizations of a
Complete Spatial Random process.
The from-feature must be a point feature, whilst the to-feature can be a point or a polyline or a
polygon feature.
The rationale of the procedure is that, if there indeed is a spatial association between the two
features, the from-feature should be closer to the to-feature than randomly generated
from-features. If the studyplot shapefile is not provided, the random locations are drawn within
a bounding polygon based on the union the convex hulls of the from- and of the to-feature.
If both the from-feature and the to-feature are of point type (SpatialPointsDataFrame class), the
user may opt for the randomized procedure described above (parameter 'type' set to 'rand'), or
for a permutation-based procedure (parameter 'type' set to 'perm'). Unlike the procedure
described above, whereby random points are drawn within the study area, the permutation-based
routine builds a cumulative distribution of minimum distances keeping the points location
unchanged and randomly assigning the points to either of the two patterns. The re-assignment is
performed B times (200 by default) and each time the minimum distance is calculated.
For an example of the use of the analysis, see for instance Carrero-Pazos, M. (2018).
Density, intensity and clustering patterns in the spatial distribution of Galician megaliths (NW
Iberian Peninsula). Archaeological and Anthropological Sciences.
https://doi.org/10.1007/s12520-018-0662-2, fig. 6.