Correction to: Nature Neuroscience, 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.