Funding for this research was provided by:
Chief Scientist Office, Scottish Government Health and Social Care Directorate (CZH/4/1118)
Received: 27 April 2021
Accepted: 17 August 2021
First Online: 27 September 2021
: Letters of comfort were issued by the West of Scotland NHS Ethics Committee and the University of Glasgow College of Medical, Veterinary & Life Sciences Ethics Committee confirming that the full study did not need NHS ethics approval. Public Benefit and Privacy Panel approval for use of the health data was granted by NHS Information Services Scotland in December 2016 and for the education data by the Education Data Access Panel in June 2016.
: Not applicable
: The authors declare that they have no competing interests