Skip to contents

R-side port of morie.tps_csi. The Crime Severity Index (Wallace et al., 2009; Statistics Canada Catalogue 85-004-X) weights each Criminal Code offence by the product of the average sentence length (days) and the proportion of offenders incarcerated, so that violent offences with high incarceration rates and long sentences contribute disproportionately to a city's per-capita CSI score.

Details

This file exposes the weights used for the 9 Toronto Police Service open-data categories (Assault, Auto Theft, Bicycle Theft, Break and Enter, Homicide, Robbery, Shooting and Firearm Discharges, Theft from Motor Vehicle, Theft Over) and provides per-year + per-neighbourhood CSI aggregates.

Important caveats

  1. TPS open-data categories aggregate over multiple Criminal Code sub-offences. The weights here are representative blends reflecting the typical distribution of sub-offences within each TPS category for FY2023; for an exact reproduction of Statistics Canada's CSI for the City of Toronto one must work directly from the CCJS UCR microdata, which is not in TPS open data.

  2. Weights are pinned to the last published StatsCan methodology update (Reweighting the Crime Severity Index, Catalogue 85-004-X) and the Toronto-specific override tables in the CCJS Annual Statistics 2023. Newer revisions (StatsCan revises every 5 years) may shift values by 5-15\ ordering. Override via the weights argument.

  3. Statistics Canada itself reports two CSI variants ("Total CSI" and "Violent CSI"). Functions here default to Total but accept variant = "violent" to use violent-only weights, where non-violent categories (B&E, theft) are zeroed.

References

Wallace, M., Turner, J., Babyak, C., & Matarazzo, A. (2009). Measuring Crime in Canada: Introducing the Crime Severity Index and Improvements to the Uniform Crime Reporting Survey. Statistics Canada Catalogue 85-004-X.

Statistics Canada (2024). Crime Severity Index, Census Metropolitan Areas, 2023. Catalogue 35-10-0190-01.