The buffer design of place-based evaluations: a place (a block, an
address) within distance r of a site (a new facility, a treated
corner) is treated; one within r of a comparison point and farther
than buf from every site is a comparison; the rest are excluded, so
that spillover from the sites (displacement or a diffusion of benefits,
Bowers and Johnson 2003) does not reach the comparison. buf should be
several times r.
Arguments
- x, y
The points:
xandynumeric vectors of equal length; orxa matrix or data frame with columns namedxandy(orXandY, assf::st_coordinates()names them, orlonandlatwithlonlat = TRUE) andyNULL; orxan sf or sfc object of POINT geometries, whose coordinate reference system must agree withlonlat. An unnamed two-column matrix is read asxtheny; other columns are never taken by position. Vectors given separately (x,y, andwortwhere a function takes them) are matched by name when every one is named and no name repeats, as elsewhere in the package; otherwise by position. No missing or infinite values.- site, comp
The sites and the comparison points, as coordinates in the form of
x(longitude and latitude whenlonlat = TRUE).- r
The treatment radius: positive, in the unit of the coordinates (metres when
lonlat = TRUE).- buf
The distance from every site a comparison place keeps, from 0.
- lonlat
FALSE(the default) whenxandyare planar coordinates in one length unit;TRUEwhen they are longitude and latitude in degrees, which are then projected to metres byeqproj()about their own centre, and centres are returned in degrees. It is never guessed.
Value
A list of class bufas: pts, a data frame with one row per
place: grp (a factor: treated, comparison, excluded), dsite and
dcomp (the distances to the nearest site and comparison point); n,
the counts of the groups; par, r and buf.
References
Bowers, K. J. and Johnson, S. D. (2003). Measuring the geographical displacement and diffusion of benefit effects of crime prevention activity. Journal of Quantitative Criminology, 19(3), 275-301. doi:10.1023/A:1024909009240