Availability of data and materials
All analyses involving health outcomes were conducted in the OpenSAFELY research platform, and data cannot be made available outside that platform other than approved aggregated study results. A GitHub repository containing all analysis scripts used in OpenSAFELY for this study can be found here: 