Package: searchlight 0.1.0

Mustapha Wasseja

searchlight: Audited Analysis of Police Stop and Search Records

Acquire and audit public police stop and search archives for England and Wales, retaining provenance and explicit coverage information. Designed for exposure-based ethnic disparity analysis with separately reported sampling and assumption uncertainty. Contains public sector information licensed under the Open Government Licence v3.0.

Authors:Mustapha Wasseja [aut, cre], Black Thrive Global [cph, fnd]

searchlight_0.1.0.tar.gz
searchlight_0.1.0.zip(r-4.7-any)searchlight_0.1.0.zip(r-4.6-any)searchlight_0.1.0.zip(r-4.5-any)
searchlight_0.1.0.tgz(r-4.6-any)searchlight_0.1.0.tgz(r-4.5-any)
searchlight_0.1.0.tar.gz(r-4.7-any)searchlight_0.1.0.tar.gz(r-4.6-any)
searchlight_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
searchlight/json (API)

# Install 'searchlight' in R:
install.packages('searchlight', repos = c('https://blackthrive.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/blackthrive/searchlight/issues

Pkgdown/docs site:https://blackthrive.github.io

On CRAN:

Conda:

4.78 score 35 exports 149 dependencies

Last updated from:0fe099ab31. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK228
source / vignettesOK272
linux-releaseOK227
macos-releaseOK232
macos-oldrelOK181
windows-develOK158
windows-releaseOK142
windows-oldrelOK142
wasm-releaseOK181

Exports:sl_archive_downloadsl_archive_indexsl_archive_snapshotsl_assign_geographysl_benchmarksl_boundariessl_cache_clearsl_cache_dirsl_contractsl_count_modelsl_countssl_coveragesl_coverage_comparesl_denominator_scenariossl_exposuresl_hit_ratessl_list_versionssl_location_qualitysl_missing_ethnicity_boundssl_populationsl_population_crosstabsl_qualitysl_ranking_stabilitysl_rate_ratiosl_ratessl_read_recordssl_reportsl_samplesl_select_versionsl_simulatesl_spatial_disparitysl_spatial_mapsl_standardisesl_timestamp_qualitysl_veil_of_darkness

Dependencies:abindaskpassbackportsbase64encbitbit64bootbrewbslibcachemCARBayesCARBayesdatacheckmateclassclassIntclicliprcodacodetoolscommonmarkcpp11crayoncrosstalkcurldata.tableDBIdeldirdigestdistributionaldotCall64dplyre1071evaluatefarverfastmapfontawesomeforcatsforeachfsgenericsgeojsonsfgeometriesGGallyggplot2ggstatsglmnetgluegtablehighrhmshtmltoolshtmlwidgetshttpuvhttr2igraphisobanditeratorsjquerylibjsonifyjsonliteKernSmoothknitrlabelinglaterlatticelazyevalleafemleafletleaflet.providersleafpoplifecyclelubridatemagrittrmapviewMASSMatrixMatrixModelsmatrixStatsmcmcMCMCpackmemoisemimenumDerivopensslotelpatchworkpillarpkgconfigplyrpngposteriorprettyunitsprogresspromisesproxypurrrquantregR6rapidjsonrrappdirsrasterRColorBrewerRcppRcppEigenreadrrlangrmarkdowns2S7sasssatellitescalesservrsfsfheadersshapespspamSparseMspDataspdepstringistringrsuncalcsurvivalsvglitesyssystemfontstensorAterratextshapingtibbletidyrtidyselecttimechangetinytextruncnormtzdbunitsutf8uuidvctrsviridisLitevroomwithrwkxfunxml2yaml

Estimating disparity with explicit assumptions
Events, reporting coverage and exposure | Missing ethnicity changes the estimand | Denominator scenarios require comparable cells | Direct age-sex standardisation | Rankings need uncertainty, too | Validation and limits

Last update: 2026-09-16
Started: 2026-09-16

From archive to audited dataset
Acquire a snapshot, then choose whole files | Coverage comes before comparison | Attach geography locally | Inspect timestamp quality and exposures | Export a reviewable report

Last update: 2026-09-16
Started: 2026-09-16

Outcome tests and veil of darkness
Three separate meanings of an outcome | A time-quality screen is mandatory | Local clock time, sunset and civil twilight

Last update: 2026-09-16
Started: 2026-09-16

Small-area disparity with spatial smoothing: simulation evidence
A spatial model of disparity | Recovery independent of total intensity | Replicated evidence, including failure modes

Last update: 2026-09-16
Started: 2026-09-16

Readme and manuals

Help Manual

Help pageTopics
Download and verify the necessary archive snapshotssl_archive_download
List available bulk archive snapshotssl_archive_index
Extract immutable stop and search CSV snapshotssl_archive_snapshot
Assign anonymised points to local geographiessl_assign_geography
Cross-check annual totals against the Home Officesl_benchmark
Fetch a versioned ONS boundary layersl_boundaries
Clear a marked searchlight cachesl_cache_clear
Locate the searchlight cachesl_cache_dir
Inspect an ingestion contractsl_contract
Fit count models with population-time exposuresl_count_model
Count events while preserving submission stratasl_counts
Audit submission coverage on a full force-month gridsl_coverage
Compare coverage patterns across two periodssl_coverage_compare
Compare compatible population denominator scenariossl_denominator_scenarios
Construct an explicit exposure tablesl_exposure
Describe three separate outcomes conditional on being searchedsl_hit_rates
List force-month archive versionssl_list_versions
Diagnose anonymised location qualitysl_location_quality
Bound disparity under allocations of Unknown ethnicitysl_missing_ethnicity_bounds
Census 2021 ethnicity populationssl_population
Census ethnicity by age and sexsl_population_crosstab
Attach submission, timestamp and location diagnosticssl_quality
Assess area rank uncertainty under count models or posterior drawssl_ranking_stability
Estimate an event stop-rate ratio with exposure offsetssl_rate_ratio
Calculate rates using observed population-time exposuresl_rates
Read selected immutable archive recordssl_read_records
Write an offline report of audited records and analysis resultssl_report
Load the bundled real archive samplesl_sample
Select one complete version per force-monthsl_select_version
Simulate event counts with independent disparity and total intensitysl_simulate
Estimate a multivariate spatial stop-rate disparity surfacesl_spatial_disparity
Join spatial posterior summaries to their polygonssl_spatial_map
Directly standardise age-sex stop-event ratessl_standardise
Diagnose timestamp completeness and midnight heapingsl_timestamp_quality
Diagnose ethnicity composition in daylight and darknesssl_veil_of_darkness