Correction to: Nature Medicine https://doi.org/10.1038/s41591-023-02277-9, published online 1 June 2023.

In the version of this article initially published, the graph shown in Fig. 6b was an inadvertent duplicate of Fig. 6a, while the key label now reading “PSAG + PGS269” originally read “PSAG + PRS269.” The figure has been amended in the HTML and PDF versions of the article.