Code used in the protocol for the estimating the effect of crime maps project (https://osf.io/preprints/socarxiv/9zupw/). Include code for the supplementary materials.
The steps are:
Tested under R.4.0.3 and windows 10. Test machine has an i7-4770 CPU with 16GB RAM.M
File directory structure is this:
master folder /// for data and code |-> \code folder //// this folder |-> \code folder\saved cleaned data /// find cleaned outputs here |-> \data /// raw data folder; see data sources
The raw data coomes from:
Run 00-utils.R first to load in dependencies and check file paths. All file paths are relative (to this folder).
The scripts need to create the inferred list of snap points (South Yorkshire only):
To create the inferred list of snaps for the whole of England and Wales comment out lines in 00-utils and makeFile01. See code comments.
To recreate the analysis in supplement, run these additional scripts: