Most of my research uses data that cannot be shared, so I release the analysis code and teaching materials instead. Stable releases are archived on Zenodo with DOIs. Many of my publications have freely accessible versions; see Publications for DOI and open access links.
Research code
Analysis codeR · ECHILD
HOPESEN: SEND provision and secondary school outcomes
HOPESEN provides the analytical code for population-based analyses of SEND provision profiles and education and health outcomes among secondary school pupils in England using the ECHILD Research Database.
It includes linked data cohort construction, outcome derivation, descriptive analyses, and fixed effects Poisson regression workflows for the ONS Secure Research Service, while documenting practical reproducibility constraints in an air-gapped trusted research environment.
Source code and documentation · Archived v1.0.0 release and DOI
Teaching and methods resources
WorkshopR · ONS SRS2026
Good practice in R for secure research environments
Good Practice for R Users When Working in the ONS SRS provides materials for a one hour workshop on writing efficient, reproducible, and robust R code for large linked administrative data in the ONS Secure Research Service and similar trusted research environments. It was developed for a workshop through Datacise Open Learning on 25 November 2026, and the lesson notes can be read without running any code.
It covers analytical units and join checks, reducing data early and letting the database do the work, managing memory and recomputation, telling missing records from true zeroes, and rerunnable pipelines. Because SRS data cannot leave the SRS, the worked example uses public New York City trip records with the same structural problems, about 240 million rows a year, in data.table, dplyr, Arrow, and dbplyr. Source code and lesson notes · Archived v1.0.0 release and DOI
Teaching resourceR, Python, Stata2024
Routine data analysis across R, Python, and Stata
Risk of Suicide After Cancer Diagnosis in England is a worked teaching resource demonstrating approaches to analysing routinely collected health data. It covers survival analysis workflows, person-time, standardised mortality ratios, and absolute excess risks, with examples in R, Python, and Stata.
The material uses synthetic and published data for methodological and educational purposes. Source code and documentation · Archived v1.0.0 release and DOI
TutorialR2025
Mapping and spatial analysis in R
Mapping and Spatial Analysis in R is an introductory tutorial developed for the UCL R User Group. It covers spatial data structures, coordinate reference systems, vector and raster analysis, mapping, spatial joins, proximity and adjacency, spatial autocorrelation, hotspot analysis, and introductory spatial interpolation.
The tutorial is designed for researchers and analysts with basic R experience who are new to spatial analysis. Source materials · Archived v1.0.0 release and DOI
Open infrastructure
Website sourceHugo, R
Reproducible website infrastructure
The website source is public. The site uses Hugo, R, ORCID, OpenAlex, Crossref, GitHub Actions, and small curated data files to maintain publications, funding, talks, teaching, and other academic content with limited manual duplication.
The repository documents the build, dependency management, content refresh, and validation workflow.
More code, talks, and materials
Additional public repositories are available through my GitHub profile, including the materials for a four session course in reproducible analysis in R and Python for mental health researchers. Talks and methods courses are listed under Talks.
Outputs from UNITED, my NIHR Team Science award on England’s national drug and alcohol treatment data, are collected on the UNITED project website, including the scoping review preprint, a conference poster, and the recording and slides of a November 2026 Lunch and Learn with the NIHR Public Health Policy Research Unit.
Code and materials for specific projects are also linked from the relevant research, publication, and teaching pages where available.