Audited Analysis of Police Stop and Search Records


[Up] [Top]

Documentation for package ‘searchlight’ version 0.1.0

Help Pages

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_assign_geography Assign anonymised points to local geographies
sl_benchmark Cross-check annual totals against the Home Office
sl_boundaries Fetch a versioned ONS boundary layer
sl_cache_clear Clear a marked searchlight cache
sl_cache_dir Locate the searchlight cache
sl_contract Inspect an ingestion contract
sl_counts Count events while preserving submission strata
sl_count_model Fit count models with population-time exposure
sl_coverage Audit submission coverage on a full force-month grid
sl_coverage_compare Compare coverage patterns across two periods
sl_denominator_scenarios Compare compatible population denominator scenarios
sl_exposure Construct an explicit exposure table
sl_hit_rates Describe three separate outcomes conditional on being searched
sl_list_versions List force-month archive versions
sl_location_quality Diagnose anonymised location quality
sl_missing_ethnicity_bounds Bound disparity under allocations of Unknown ethnicity
sl_population Census 2021 ethnicity populations
sl_population_crosstab Census ethnicity by age and sex
sl_quality Attach submission, timestamp and location diagnostics
sl_ranking_stability Assess area rank uncertainty under count models or posterior draws
sl_rates Calculate rates using observed population-time exposure
sl_rate_ratio Estimate an event stop-rate ratio with exposure offsets
sl_read_records Read selected immutable archive records
sl_report Write an offline report of audited records and analysis results
sl_sample Load the bundled real archive sample
sl_select_version Select one complete version per force-month
sl_simulate Simulate event counts with independent disparity and total intensity
sl_spatial_disparity Estimate a multivariate spatial stop-rate disparity surface
sl_spatial_map Join spatial posterior summaries to their polygons
sl_standardise Directly standardise age-sex stop-event rates
sl_timestamp_quality Diagnose timestamp completeness and midnight heaping
sl_veil_of_darkness Diagnose ethnicity composition in daylight and darkness