The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

The survextrap R package

survextrap

survextrap is an R package for parametric survival modelling with either or both of:

  1. A standard individual-level, right-censored survival dataset, e.g.
Survival time Death Predictors…
2 years Yes
5 years No
etc…
  1. (optionally) “External” data sources in the following aggregate “count” form:
Follow-up period Number Predictors…
Start time \(t\) End time \(u\) Alive at \(t\) Still alive at \(u\)
\(t_{1}\) \(u_{1}\) \(n_{1}\) \(r_{1}\)
\(t_{2}\) \(u_{2}\) \(n_{2}\) \(r_{2}\)
etc…

Any number of rows can be supplied for the “external” data, and the time intervals do not have to be distinct or exhaustive.

Many forms of external data that might be useful for survival extrapolation (such as population data, registry data or elicited judgements) can be manipulated into this common “count” form.

Principles

How it works

Technical details of the methods

The model is fully described in a paper: Jackson, BMC Medical Research Methodology (2023). See also vignette("methods").

vignette("priors") goes into detail on how prior distributions and judgements can be specified in survextrap - an important but often-neglected part of Bayesian analysis.

Evaluation of the methods

Two papers by Timmins et al. describe simulation studies that show good performance of the methods for (a) short-term estimation from individual-level data and (b) extrapolation including external data.

Examples of how to use it

vignette("examples") gives a rapid tour of each feature, using simple textbook examples and simulated data.

The cetuximab case study is a more in-depth demonstration of how survextrap could be used in a typical health technology evaluation, based on clinical trial, disease registry, general population and elicited data. This vignette accompanies Section 4 of the preprint paper.

Slides from presentations about survextrap

Installation

The package can be installed in the usual way from CRAN, as:

install.packages("survextrap")

The latest development version on Github can be installed as

remotes::install_github("chjackson/survextrap")

or more easily as (but a day behind the code on Github)

install.packages("survextrap", repos=c('https://chjackson.r-universe.dev',
                                       'https://cloud.r-project.org'))

If you use it, I would be very happy to know!

Feedback, suggestions or problem reports are welcome. Or just let me know what you are using it for, and how well it worked for your application.

github issues, or email are fine.

lifecycle R-CMD-check test-coverage

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.