Skip to contents

Archive, provenance and exposure

sl_archive_download()
Download and verify the necessary archive snapshots
sl_archive_index()
List available bulk archive snapshots
sl_archive_snapshot()
Extract immutable stop and search CSV snapshots
sl_list_versions()
List force-month archive versions
sl_select_version()
Select one complete version per force-month
sl_read_records()
Read selected immutable archive records
sl_sample()
Load the bundled real archive sample
sl_contract()
Inspect an ingestion contract
sl_boundaries()
Fetch a versioned ONS boundary layer
sl_assign_geography()
Assign anonymised points to local geographies
sl_population()
Census 2021 ethnicity populations
sl_population_crosstab()
Census ethnicity by age and sex
sl_exposure()
Construct an explicit exposure table
sl_cache_clear()
Clear a marked searchlight cache
sl_cache_dir()
Locate the searchlight cache

Coverage and quality

sl_coverage()
Audit submission coverage on a full force-month grid
sl_coverage_compare()
Compare coverage patterns across two periods
sl_benchmark()
Cross-check annual totals against the Home Office
sl_quality()
Attach submission, timestamp and location diagnostics
sl_timestamp_quality()
Diagnose timestamp completeness and midnight heaping
sl_location_quality()
Diagnose anonymised location quality

Event rates and sensitivity

sl_counts()
Count events while preserving submission strata
sl_rates()
Calculate rates using observed population-time exposure
sl_rate_ratio()
Estimate an event stop-rate ratio with exposure offsets
sl_missing_ethnicity_bounds()
Bound disparity under allocations of Unknown ethnicity
sl_denominator_scenarios()
Compare compatible population denominator scenarios
sl_standardise()
Directly standardise age-sex stop-event rates
sl_ranking_stability()
Assess area rank uncertainty under count models or posterior draws

Inference and simulation

sl_count_model()
Fit count models with population-time exposure
sl_spatial_disparity()
Estimate a multivariate spatial stop-rate disparity surface
sl_spatial_map()
Join spatial posterior summaries to their polygons
sl_hit_rates()
Describe three separate outcomes conditional on being searched
sl_veil_of_darkness()
Diagnose ethnicity composition in daylight and darkness
sl_simulate()
Simulate event counts with independent disparity and total intensity

Reporting

sl_report()
Write an offline report of audited records and analysis results