Open-source software
Everything the team maintains in the open — the merlin family, specialist Stata commands, our R packages, and the reproducible code behind the papers. All free and openly licensed, on GitHub.
The merlin family
One survival-regression engine and the packages built directly on it, in R and Stata.
merlin
RStataThe survival-regression engine — multilevel mixed-effects models, ten baseline families, cure and relative-survival models, and time-dependent effects under one syntax.
stmerlin
StataConvenience wrapper for fitting parametric and semi-parametric survival models with merlin, optionally across multiple timescales.
morgana
StataRBayesian flexible survival models built on the merlin engine. The Stata package is available now; an R implementation with full posterior inference via the No-U-Turn Sampler is in development.
pendragon
StataRMulti-state and competing-risks models on top of merlin and morgana — transition probabilities, length of stay, restricted mean time in state, and health-economic outputs (QALYs, costs, ICERs, CEACs). The successor to multistate; in active development in R and Stata.
multistate
StataFlexible parametric multi-state survival modelling in Stata — transition probabilities, length of stay, and restricted mean times in state. pendragon's predecessor; still available while pendragon reaches parity, and its data-prep tools (msset, msaj) are reused by pendragon.
avalon
StataRSurvival-data simulation — standard, flexible-parametric, and user-defined hazards, with competing-risks and multi-state structures. The cross-ecosystem successor to survsim, under one name in R and Stata; in active development.
survsim
StataSimulating survival data — standard, flexible-parametric, and user-defined hazards, with competing-risks and multi-state structures. avalon's mature predecessor; still available on SSC while avalon reaches parity.
gawain
StataRValidation for survival prediction models — discrimination, calibration and decision-curve utility, for single-event, competing-risks and multi-state outcomes. Takes predictions as data, so it evaluates a model fitted in any software; in active development in R and Stata.
Focused survival commands
Standalone Stata commands for specific survival-analysis problems — each installable straight from GitHub.
strcs
StataFlexible parametric survival models using restricted cubic splines on the log-hazard scale.
jmqaly
StataQuality-adjusted life years after a joint longitudinal-survival model fitted with merlin. The reference implementation of the paper's estimators; requires one specific merlin version.
stdmest
StataStandardised survival probabilities and hierarchical contrasts after mixed-effects survival models.
Our work in R
A growing set of R packages for multi-state visualisation, trial simulation, and standardised hierarchical contrasts.
msm.stacked
RStacked-probability plots and transition probabilities for msm multi-state models.
stdmest-r
RStandardised survival probabilities and hierarchical contrasts — an R port of the Stata stdmest.
Code behind the papers
Replication data, annotated code, and talk materials accompanying the team's published methods work.
multilevel-survival-regstd
StataSynthetic data and annotated code reproducing the analyses in the multilevel-standardisation paper.
2023-nesc-hsurv
StataSlides and code for the talk “Hierarchical Survival Models: Estimation, Prediction, Interpretation.”