survextrap: Bayesian Flexible Parametric Survival Modelling and Extrapolation

Survival analysis using a flexible Bayesian model for individual-level right-censored data, optionally combined with aggregate data on counts of survivors in different periods of time. An M-spline is used to describe the hazard function, with a prior on the coefficients that controls over-fitting. Proportional hazards or flexible non-proportional hazards models can be used to relate survival to predictors. Additive hazards (relative survival) models, waning treatment effects, and mixture cure models are also supported. Priors can be customised and calibrated to substantive beliefs. Posterior distributions are estimated using 'Stan', and outputs are arranged in a tidy format. See Jackson (2023) <doi:10.1186/s12874-023-02094-1>.

Package details

AuthorChristopher Jackson [aut, cre, cph] (ORCID: <https://orcid.org/0000-0002-6656-8913>), Iain Timmins [ctb] (ORCID: <https://orcid.org/0000-0002-8761-582X>), Michael Sweeting [ctb] (ORCID: <https://orcid.org/0000-0003-0980-8965>)
MaintainerChristopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk>
LicenseGPL (>= 3)
Version1.0
URL https://github.com/chjackson/survextrap https://chjackson.github.io/survextrap/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("survextrap")

Try the survextrap package in your browser

Any scripts or data that you put into this service are public.

survextrap documentation built on June 10, 2025, 5:11 p.m.