Red Door Analytics
Stockholm · since 2021

Statistical methods for medical research — consulting, software, training

Hard questions in medical research need the right model, not a convenient one. We build the methods and the open-source software ourselves, so we can fit what your question needs, explain it, and teach it to your team.

201 peer-reviewed publications
across applied research and biostatistics methods
10 courses and schools
7 short courses, 3 schools
18 released open-source packages
in R and Stata
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, multi-state, 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
  • Multi-state and competing risks
  • RDA Winter School — annual residential programme
See courses →
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 →

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 is a ground-up C++ rewrite of the engine's survival core, with analytic gradients across every family. merlin v3 for Stata brings a rebuilt likelihood engine. Both are in build; merlin v0.1.1 for R is a pre-release, and the Stata package is on 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.

See all tools →

Training courses

Advanced courses, online and in-house

A rolling programme of short courses on survival analysis, joint modelling, multi-state, 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?

Tell us what you are working on. We'll point you to the right resource, or design something around what you need.

Get in touch Start a project