Correction to: Nature Medicine https://doi.org/10.1038/s41591-023-02583-2, published online 16 October 2023.

In the version of the article originally published, there was an error in the inset table in Extended Data Fig. 1a, where the text now reading “HR (95% CI)” previously read “Log-rank P”. This has now been corrected in the HTML and PDF versions of the article.