Red Door Analytics
Stockholm · since 2021

Statistical methods for medical research — consulting, software, training

We answer hard questions in medical research — and because we build the methods and the software ourselves, we can answer ones others can't. Red Door Analytics delivers applied biostatistics for medical research teams, builds the open-source survival-analysis software the field relies on, and trains the next generation — one Stockholm team across all three.

199 peer-reviewed publications
across applied research and biostatistics methods
10 training courses
open-enrolment and in-house
3 released open-source packages
published on SSC
8 interactive tools
free, in your browser
What we do

Three things, deeply

Applied biostatistics for medical research teams, the open-source software the field uses, and training courses for the next generation of biostatisticians. Same people across all three.

01 · CONSULTANCY

Applied biostatistics consultancy

Applied statistical research for medical research teams — design, analysis, and interpretation of clinical, epidemiological, and registry studies. From a thirty-minute methods conversation through to embedded leadership across a programme.

  • Design and analysis of clinical, epidemiological, and real-world evidence studies
  • Custom methodology for non-standard analyses
  • Statistical analysis plans and pre-specified protocols
  • Submission and reviewer-response support
See consultancy →
02 · SOFTWARE

Open-source statistical software

We build the software the field uses. The merlin family — merlin (the survival engine), morgana (Bayesian), and pendragon (multi-state) — in R and Stata, with avalon for survival-data simulation.

  • merlin — the survival-regression engine
  • morgana — Bayesian survival models (Stata v1 available; v2 and R in development)
  • pendragon — multi-state & competing risks (R & Stata, in development)
  • avalon — survival-data simulation (R & Stata, in development)
See the software →
03 · TRAINING

Advanced training courses

Open-enrolment short courses on flexible parametric survival, multistate, joint modelling, longitudinal analysis, and competing risks. Bespoke in-house training for organisations standardising on the methods.

  • Survival analysis · introduction and advanced
  • Joint modelling of longitudinal and survival data
  • Multistate and competing risks
  • RDA Winter School — annual residential programme
See courses →
Most-used package

merlin — the survival-regression engine at the heart of our software

Our most-used open-source package — the engine the merlin family is built on, and the one behind much of our applied work: registry studies, peer-reviewed methods papers, and HTA submissions. In R and Stata.

new in 2026 — across R and Stata

The whole merlin framework, rebuilt — a C++ rewrite in R and a new release in Stata

merlin v2 for R will bring the engine's survival core on a ground-up rewrite — ten baseline families, three first-class integration methods, mixture and non-mixture cure models, relative-survival decomposition, and multilevel random effects, with hand-derived analytic gradients in C++ across the matrix. In parallel, merlin v3 for Stata brings a rebuilt likelihood engine — analytic gradients and Hessians, 2–4× faster than v2.4.7 on random-effects, time-dependent, and numerically-integrated fits — keeping its lead on joint, multistate, competing-risks, and recurrent-event models. Both are in build; merlin v0.1.1 for R is available from GitHub today, and the Stata package from SSC.

R and Stata GPL-3 open source JSS paper in preparation
Explore merlin →
Try it yourself

Interactive tools, free in your browser

Built on the same methods we publish and teach — simulate survival data, design and power a study, see when a single hazard ratio misleads, reconstruct a published Kaplan–Meier curve, and build multi-state and partitioned-survival health-economic models. Everything runs client-side, with one-click export to R and Stata.

Explore all the tools →

Selected work

What our methods make possible

A few projects where the right model changed the answer — each published, peer-reviewed, and with reproducible code.

See all case studies →
Training courses

Advanced courses, online and in-house

A rolling programme of short courses on survival analysis, joint modelling, multistate, longitudinal analysis, and competing risks. Register your interest and we'll let you know when the next session opens; bespoke in-house courses are scoped on request.

It was a fantastic course that exceeded all my (high) expectations. There was a good balance between theoretical and practical content, using several applicative examples that easily connected with my current work.
Researcher, University College London RDA Winter School · 2025 cohort
See all courses →

Considering RDA for a research project, regulatory submission, or training need?

Connect with our statistical experts for your medical research needs. We'll point you to the right resource, or design something around what you need.

Get in touch Start a project