Skip to content

survextrap

Bayesian Flexible Parametric Survival Modelling and Extrapolation

v1.0.1 · Jan 13, 2026 · GPL (>= 3)

Description

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

Downloads

622

Last 30 days

5932nd

622

Last 90 days

622

Last year

CRAN Check Status

3 NOTE
11 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 NOTE
r-oldrel-macos-x86_64 NOTE
r-oldrel-windows-x86_64 NOTE
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (17 non-OK)
OK r-devel-linux-x86_64-debian-clang

*


            
OK r-devel-linux-x86_64-debian-gcc

*


            
OK r-devel-linux-x86_64-fedora-clang

*


            
OK r-devel-linux-x86_64-fedora-gcc

*


            
OK r-devel-macos-arm64

*


            
OK r-devel-windows-x86_64

*


            
NOTE r-oldrel-macos-arm64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 70.8Mb
  sub-directories of 1Mb or more:
    doc    3.9Mb
    libs  66.2Mb
NOTE r-oldrel-macos-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is 87.7Mb
  sub-directories of 1Mb or more:
    doc    3.9Mb
    libs  83.1Mb
NOTE r-oldrel-windows-x86_64

for GNU extensions in Makefiles

GNU make is a SystemRequirements.
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is  7.2Mb
  sub-directories of 1Mb or more:
    doc    3.9Mb
    libs   2.6Mb
OK r-patched-linux-x86_64

*


            
OK r-release-linux-x86_64

*


            
OK r-release-macos-arm64

*


            
OK r-release-macos-x86_64

*


            
OK r-release-windows-x86_64

*


            

Check History

NOTE 11 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 9, 2026
NOTE r-oldrel-macos-arm64

installed package size

  installed size is 70.8Mb
  sub-directories of 1Mb or more:
    doc    3.9Mb
    libs  66.2Mb
NOTE r-oldrel-macos-x86_64

installed package size

  installed size is 87.7Mb
  sub-directories of 1Mb or more:
    doc    3.9Mb
    libs  83.1Mb
NOTE r-oldrel-windows-x86_64

installed package size

  installed size is  7.2Mb
  sub-directories of 1Mb or more:
    doc    3.9Mb
    libs   2.6Mb

Dependency Network

Dependencies Reverse dependencies survival ggplot2 gridExtra loo posterior Rcpp rstan splines2 tibble survextrap

Version History

new 1.0.1 Mar 9, 2026