Correction to: Nature https://doi.org/10.1038/s41586-022-04966-w Published online 22 June 2022

In the version of the article initially published, in the penultimate paragraph of the “Attribution and administrative data” section, the sentences now reading “Notably, after including controls, the gender gap remains for all job titles except undergraduates. The gender gap similarly remains for 9 out of 13 fields for publications and 8 out of 13 fields for patents, after including controls” have been corrected from “Notably, after including controls, the gender gap is significant for all job titles except undergraduates. The gender gap is similarly significant for 9 out of 13 fields for publications and 5 out of 13 fields for patents, after including controls”. In the “Ethical approval” section, under “Analytical sample”, “weighted” was added to the sentence now reading “If these numbers are converted to rates, the weighted attribution rate on scientific documents was 3.17%”. These changes have been made to the HTML and PDF versions of the article.