Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-021-00901-w, published online 5 August 2021.

In the version of this article initially published online, the Code availability statement directed readers to an open-source platform with a now defunct link. The code used in the study is currently available through Figshare at https://doi.org/10.34747/eagk-r334. The changes have been made to the HTML and PDF versions of the article.