The chance that an incident is seen by patrols when each officer within
radius of it sees it independently with probability p: with k
officers in range, 1 - (1 - p)^k (the detection model of Barman and
Barman 2026). With draw = TRUE, one detection outcome is drawn for
each incident. A model of who is seen, under stated assumptions; how
patrols are actually placed and how much they see are matters of fact
the model does not settle.
Arguments
- x
The incidents: a numeric matrix of two columns, or a data frame with columns
xandy(or two columns), planar coordinates.- off
The officers, in the same forms;
NULLor no rows for none.- radius
The range: one positive number, in the coordinates' units (distances are Euclidean; an officer exactly at
radiuscounts).- p
The chance one officer in range sees an incident: one number above 0 and at most 1.
- draw
TRUEto draw whether each incident is detected.- seed
NULLto draw the seed of the detections from R's generator, or one whole number from 0; read only withdraw.
Value
A data frame with one row per incident: k (officers in range),
prob and, with draw, det (1 detected, 0 not).
References
Barman, P. K. and Barman, P. K. (2026). Spatial disparities in simulated patrol detection: a reproducible generative-model audit across Baltimore and Chicago. doi:10.48550/arXiv.2603.18987