Correction to: Nature Neuroscience https://doi.org/10.1038/s41593-020-0705-8, published online 14 September 2020

In the version of this article initially published, the final parenthesis in the third equation in Methods was incorrectly placed before, instead of after, the superscript R. The error has been corrected in the HTML and PDF versions of the article.