Red Door Analytics
Engine & family

The merlin family

One survival-regression engine and the packages built directly on it, in R and Stata.

merlin

RStata

The survival-regression engine — multilevel mixed-effects models, ten baseline families, cure and relative-survival models, and time-dependent effects under one syntax.

stmerlin

Stata

Convenience wrapper for fitting parametric and semi-parametric survival models with merlin, optionally across multiple timescales.

morgana

StataR

Bayesian 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

StataR

Multi-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

Stata

Flexible 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

StataR

Survival-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

Stata

Simulating 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

StataR

Validation 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.

Specialist Stata packages

Focused survival commands

Standalone Stata commands for specific survival-analysis problems — each installable straight from GitHub.

staft

Stata

Flexible parametric accelerated failure-time (AFT) models.

strcs

Stata

Flexible parametric survival models using restricted cubic splines on the log-hazard scale.

stmixed

Stata

Multilevel mixed-effects parametric survival models.

stexcess

Stata

Excess-hazard (relative survival) models.

uhtred

Stata

Flexible multivariate mixed-effects survival analysis.

jmqaly

Stata

Quality-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

Stata

Standardised survival probabilities and hierarchical contrasts after mixed-effects survival models.

R packages

Our work in R

A growing set of R packages for multi-state visualisation, trial simulation, and standardised hierarchical contrasts.

msm.stacked

R

Stacked-probability plots and transition probabilities for msm multi-state models.

simswjm

R

Simulating stepped-wedge trials with and without informative dropout.

stdmest-r

R

Standardised survival probabilities and hierarchical contrasts — an R port of the Stata stdmest.

Reproducible research

Code behind the papers

Replication data, annotated code, and talk materials accompanying the team's published methods work.

multilevel-survival-regstd

Stata

Synthetic data and annotated code reproducing the analyses in the multilevel-standardisation paper.

2023-nesc-hsurv

Stata

Slides and code for the talk “Hierarchical Survival Models: Estimation, Prediction, Interpretation.”

Building on our packages, or want a method that doesn't exist yet?

Every package here is open and free to use. If you need it extended, validated, or applied to your own data, that's what our software-development service is for.

Get in touch Start a project