This paper by Solberg and colleagues (BMJ 2024;386:e078918, doi:10.1136/bmj-2023-078918, published 24 July 2024) has been corrected to add results for self-reported sick leave, which were prespecified but inadvertently omitted from the first version of the paper. The additional information appears in the main outcome measures and results section of the abstract, the outcomes section in the methods, the secondary outcomes section in the main results, and table 3. No additional changes or corrections have been made to the manuscript. The article and PDF have been updated.