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>.
Version: | 1.0 |
Depends: | R (≥ 3.5.0), survival |
Imports: | ggplot2 (≥ 3.4.0), gridExtra, loo, methods, posterior, Rcpp (≥ 0.12.0), rstan (≥ 2.26.0), splines2, tibble |
LinkingTo: | BH (≥ 1.66.0), Rcpp (≥ 0.12.0), RcppEigen (≥ 0.3.3.3.0), RcppParallel (≥ 5.0.1), rstan (≥ 2.26.0), StanHeaders (≥ 2.26.0) |
Suggests: | rstantools (≥ 2.3.1), knitr, rmarkdown, testthat, SHELF, flexsurv, flexsurvcure, splines, dplyr, viridis, forcats, fs, purrr, tidyr, stringr, survminer |
Published: | 2025-06-10 |
DOI: | 10.32614/CRAN.package.survextrap |
Author: | Christopher Jackson
|
Maintainer: | Christopher Jackson <chris.jackson at mrc-bsu.cam.ac.uk> |
BugReports: | https://github.com/chjackson/survextrap/issues |
License: | GPL (≥ 3) |
URL: | https://github.com/chjackson/survextrap, https://chjackson.github.io/survextrap/ |
NeedsCompilation: | yes |
SystemRequirements: | GNU make |
Citation: | survextrap citation info |
Materials: | README NEWS |
CRAN checks: | survextrap results |
Reference manual: | survextrap.pdf |
Vignettes: |
Examples of using survextrap (source, R code) Details of methods behind survextrap (source, R code) Priors in survextrap models (source, R code) |
Package source: | survextrap_1.0.tar.gz |
Windows binaries: | r-devel: not available, r-release: survextrap_1.0.zip, r-oldrel: survextrap_1.0.zip |
macOS binaries: | r-release (arm64): survextrap_1.0.tgz, r-oldrel (arm64): survextrap_1.0.tgz, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=survextrap to link to this page.