Replication data and code for: Break-aware Bayesian forecasting of road safety target attainment under changing injury severity definitions
Description
Data and code to reproduce all tables and figures of the article “Break-aware Bayesian forecasting of road safety target attainment under changing injury severity definitions: evidence from Jordan with validation on British data”. The package contains (i) Jordanian casualty counts by governorate and by posted speed limit, 2015–2024, compiled from the published annual traffic accident reports of the Public Security Directorate, with population estimates from the Department of Statistics; (ii) Great Britain casualty counts by police-force unit, 2005–2025, aggregated from the Department for Transport STATS19 open data; (iii) Python code for the Bayesian models, the simulation study and the figures; and (iv) the model outputs reported in the article. See README.md for a description of every file and instructions for running the code.
Files
Steps to reproduce
Install Python 3.13 and the required packages: pip install jax==0.11.2 numpyro==0.22.0 numpy pandas matplotlib Download and unzip the package, keeping the folder structure (data/, code/, results/). Open a terminal in the code/ folder and run: bash run_all.sh The script fits the Jordanian models (Section 7 of the article), the UK validation (Section 6), the simulation study (Section 5) and produces Figures 1–4. Outputs are written to code/ and can be compared with the files in results/, which contain the outputs reported in the article. The Jordanian and UK fits take a few minutes each on a standard computer; the simulation study takes roughly 30–40 hours on two CPU cores. Random seeds are fixed, so reruns reproduce the published results. See README.md for a description of each data file, its source, and the script that produces each table and figure.
Institutions
- Jerash UniversityJerash, Jerash