R code to reproduce the analysis in "Long-term exposure to PM2.5 and mortality: an analysis of the UK Biobank".