Course materials¶
Everything the worked example in lessons 3 to 6 uses. Download the data and the scripts and rerun the analysis yourself.
Data¶
| File | What it is |
|---|---|
cancer_treatment.csv |
Fifteen mice in four groups — two controls, two treatments — and the day each died. Semicolon-delimited. |
Scripts¶
| File | What it does |
|---|---|
survival_analysis.py |
Kaplan–Meier curves and the five pairwise log-rank tests, with the Bonferroni correction and the day-50 censoring made explicit. |
ph_check.py |
The log–log diagnostic for the proportional hazards assumption. |
Both scripts need pandas, numpy, matplotlib and lifelines:
Figures¶
| File | What it is |
|---|---|
km_curves.png |
The survival curves as first drawn. |
km_curves_journal.png · PDF |
The same figure at 88 mm single-column, 7 pt Arial, fonts embedded. |
ph_check_loglog.png · PDF |
The log–log diagnostic plot. |
dellacqua_jagged_frontier.png |
The jagged frontier, reproduced in lesson 8. Figure 1 of Dell'Acqua et al. (2023), Harvard Business School Working Paper 24-013 — not our figure, and reproduced here for teaching. |
Skills¶
A Skill is a Markdown file that records how you want a job done, so the agent does it that way next time. The three used in this course:
- cancer-journal-plot — the one written on camera in 4.
- journal-figure — its general form, for any figure going into a paper.
- slide-deck — the slide layout used throughout this course.
Papers referred to¶
The lessons cite the literature by DOI rather than reproducing the PDFs here.
- Shukla et al., Cureus — 10.7759/cureus.94949
- Sebo & Wang — 10.1007/s11739-026-04291-4
- Rovetta, Castaldo & Mansournia, preprint — 10.21203/rs.3.rs-8630701/v1
- Greenland et al., on misinterpretations of p-values — PubMed 27209009
- Asher et al., Stanford working paper — llm-phacking
- BixBench — arXiv:2503.00096
- Zhang (2026) — 10.64898/2026.04.28.721523
- Alizadeh et al. — arXiv:2606.11447
- Bland & Altman (2004), BMJ, on the log-rank test — the reading Claude suggested in 1.2.
- Di Meo et al. (2025) — the closest published match for survival analysis at small n.