Correction to: Nature Human Behaviour https://doi.org/10.1038/s41562-023-01768-6, published online 4 December 2024.

In the version of the article initially published, the Code Availability section contained an outdated link and has now been amended to read “Our scripts for data processing and transformation are available for inspection in our public GitHub repository https://github.com/rburns520/COVID-19-vaccination-in-the-Million-Migrant-cohort/releases/tag/v1.0 and https://doi.org/10.5281/zenodo.10519055”. This has been corrected in the HTML and PDF versions of the article.