# Canadian Transit
Live at https://samueldaly.com/canadiantransit/. Open `index.html` locally if needed; main charts are self-contained and use no external JavaScript.

This is research edition 3 of Making Transit Work, Canada first. The peer atlas is an earlier snapshot, not the locally generated V3 GTFS site on your Mac. The archive and prior scripts are included for reference; their results are not authoritative over the new analysis.

## Reproduce
From this folder: `python3 -m pip install -r code/requirements.txt`, then `python3 code/analyze.py` and `python3 code/build_site.py`. The analysis rebuilds US service from the original 2024 NTD workbook. It uses prior extracted EPA/Census/BLS/Canada/GTFS/FHWA/PRN CSVs as inputs; these upstream extracts are **not independently regenerated** by this script. The raw input data and source register are provided for further auditing. The geographic crosswalk is explicit in analyze.py. `data/analysis_run.txt` records the run. Missing data is blank, not zero.

## Bundle
The main ZIP contains the website, analysis inputs, outputs, code, original small workbooks and PDFs. The optional bulk-source ZIPs unpack into this same `canadiantransit/sources/` folder. They contain the original EPA CSV, Canadian workplace ZIP and national Canadian GTFS ZIP. The full US GTFS cache and latest V3 HTML live on the user's Mac and are not present here. Web-only source documents are linked in sources/source_register.csv and the Canadian provenance tables; their bytes are not all archived. No CUTA licensed 2024 book is included.

## Interpret carefully
Canadian numerator is selected operator(s), US numerator is an NTD urbanized-area allocation; Canada denominator is 2021 CMA, US denominator is UZA population. Peer matching was originally based on metro population/density. Canadian agency hours are separate because they are incomplete and often not coextensive with boardings. EPA CBSA vs NTD UZA matches are provisional; employment density resolution differs across borders; years differ. All 2024 observations are nominal reporting-year values. GTFS schedules are mixed vintages and directed route segments, not deduplicated street lengths. Correlations and regression coefficients are associations, not policy effects. The seven Canadian observations are selected and not representative of the country. Boardings can count transfers twice; linked trips and VKT avoided are distinct outcomes. The 2017 case is conventional bus, with cost converted at 1.2986 CAD/USD; wage estimate and departmental accounting scopes differ. Review underlying sources before publication.

Edition 3 leads with Canadian outcomes and possible mechanisms, followed by the comparative evidence and US policy implications. No new estimates were calculated for this editorial revision.
