Builds an area-by-month panel of recorded crime in England and Wales from the data.police.uk bulk archive <https://data.police.uk/data/archive/>, attaches stop and search intensity as a treatment variable, and provides a panel-econometrics toolkit for evaluating policing interventions: two-way fixed effects, event studies, difference-in-differences with staggered adoption, synthetic control, spatial spillover and displacement models, and stop-crime elasticities by offence type. Area boundaries are read from the Office for National Statistics Open Geography Portal <https://geoportal.statistics.gov.uk/>, Census 2021 population from the 'Nomis' API <https://www.nomisweb.co.uk/api/v01/help>, and notes of re-supplied and missing force data from the data.police.uk change log <https://data.police.uk/changelog/>. Every panel carries a contract recording provenance, coverage, geography vintage and treatment definition; every estimator names its identifying assumption and ships with a placebo or pre-trend diagnostic.
| Version: | 0.2.0 |
| Depends: | R (≥ 4.1.0) |
| Imports: | cli, did, digest, dplyr, fixest, generics, ggplot2 (≥ 3.5.0), grDevices, grid, httr2, rlang (≥ 1.1.0), sf, spdep, stats, tibble, tidyr, tools, utils, withr |
| Suggests: | didimputation, httptest2, knitr, rmarkdown, spelling, strucchange, Synth, testthat (≥ 3.0.0), vdiffr |
| Published: | 2026-11-06 |
| DOI: | 10.32614/CRAN.package.streetlamp (may not be active yet) |
| Author: | Mustapha Wasseja [aut, cre], Souci Frissa [aut], Sarah Hamed [aut], Black Thrive Global [cph, fnd] |
| Maintainer: | Mustapha Wasseja <muswaseja at gmail.com> |
| BugReports: | https://github.com/BlackThrive/streetlamp/issues |
| License: | MIT + file LICENSE |
| URL: | https://github.com/BlackThrive/streetlamp, https://blackthrive.github.io/streetlamp/ |
| NeedsCompilation: | no |
| Language: | en-GB |
| Citation: | streetlamp citation info |
| Materials: | README, NEWS |
| CRAN checks: | streetlamp results |
| Package source: | streetlamp_0.2.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=streetlamp to link to this page.