DOI: 10.6084/m9.figshare.11662359
title: Data and source code for crime prediction based on POI locations (Manchester, Liverpool, Bournemouth, Wakefield)

description: This is a collection of datasets and source code used for a crime prediction study based on POI locations.<br>[1] Crime data from data.police.uk for the following UK police forces:<br>-- Greater Manchester Police,<br>-- Merseyside Police,<br>-- Dorset Police,<br>-- West Yorkshire Police.<br>Time span: October 2016--September 2019.<br>License: https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/<br>Format: CVS (zipped).<br>Files:<br> GreaterManchesterPolice.zip<br> MerseysidePolice.zip<br> Dorset Police.zip<br> West Yorkshire Police.zip<br> <br>[2] Data extracts from OpenStreetMap made available by Geofabrik.de for<br>the following UK counties:<br>-- Greater Manchester,<br>-- Merseyside,<br>-- Dorset,<br>-- West Yorkshire.<br>Data layers: pois, pois_a, transport, transport_a.<br>Downloaded on: November 14, 2019.<br>License: Open Database License 1.0.<br>Format: shapefile (zipped).<br>Files:<br> greater-manchester-latest-free.shp.zip<br> merseyside-latest-free.shp.zip<br> dorset-latest-free.shp.zip<br> west-yorkshire-latest-free.shp.zip<br><br>[3] UK administrative boundary data from ordnancesurvey.co.uk.<br>Downloaded on: September 23, 2019.<br>License: Open Government License.<br>Note: Contains OS data © Crown copyright and database right 2018<br>Format: shapefile (zipped)<br>File: district_borough_unitary_region.shp.zip<br><br>[4] Administrative boundary data for the following UK urban areas:<br>-- Manchester (Manchester District),<br>-- Liverpool (Liverpool District),<br>-- Bournemouth (Bournemouth, Christchurch and Poole District),<br>-- Wakefield (Wakefield District).<br>Obtained by extracting the corresponding districts from dataset [3] listed above.<br>Format: RDS.<br>File: adm-man-liv-bou-wak.RDS.<br><br>[5] Crime data aggregated to 300x300m grid for the following UK urban areas:<br>-- Manchester (Manchester District),<br>-- Liverpool (Liverpool District),<br>-- Bournemouth (Bournemouth, Christchurch and Poole District),<br>-- Wakefield (Wakefield District).<br>Obtained by geographical aggregation of crime data [1] listed above, limited to the corresponding district boundaries from [3].<br>Format: RDS.<br>File: crime-grid-man-liv-bou-wak.RDS.<br><br>[6] POI data aggregated to 300x300m grid for the following UK urban areas:<br>-- Manchester (Manchester District),<br>-- Liverpool (Liverpool District),<br>-- Wakefield (Wakefield District),<br>-- Bournemouth (Bournemouth, Christchurch and Poole District).<br>Obtained by geographical aggregation of POI data [2] listed above, limited to the corresponding district boundaries from [3].<br>Format: RDS.<br>File: poi-grid-man-liv-bou-wak.RDS.<br><br>[7] R functions for data preparation.File: crime-poi-functions-data.R.<br>[8] R functions for model creation and evaluation.File: crime-poi-functions-model.R.<br>[9] R script for data preparation.File: crime-poi-data.R.<br>[10] R script for model creation and evaluation.File: crime-poi-model.R.<br>The code assumes that:-- source code files are placed in the current working directory,-- original unprocessed data files [1-3] are placed in the data subdirectory of the current working directory,<br>-- the RDS subdirectory exists in the current working directory (this is where RDS files are saved),<br>-- the Plots subdirectory exists in the current working directory (this is where plot files are saved).<br>The provided RDS files [4-6] may be optionally placed in the RDS subdirectory to avoid repeating the time-consuming data preparation process -- they will be used if available or re-created from the original data otherwise (but the latter may take several hours).<br>