» Articles » PMID: 29593450

Flexsurv: A Platform for Parametric Survival Modeling in R

Overview
Journal J Stat Softw
Date 2018 Mar 30
PMID 29593450
Citations 158
Authors
Affiliations
Soon will be listed here.
Abstract

is an R package for fully-parametric modeling of survival data. Any parametric time-to-event distribution may be fitted if the user supplies a probability density or hazard function, and ideally also their cumulative versions. Standard survival distributions are built in, including the three and four-parameter generalized gamma and F distributions. Any parameter of any distribution can be modeled as a linear or log-linear function of covariates. The package also includes the spline model of Royston and Parmar (2002), in which both baseline survival and covariate effects can be arbitrarily flexible parametric functions of time. The main model-fitting function, flexsurvreg, uses the familiar syntax of survreg from the standard package (Therneau 2016). Censoring or left-truncation are specified in 'Surv' objects. The models are fitted by maximizing the full log-likelihood, and estimates and confidence intervals for any function of the model parameters can be printed or plotted. also provides functions for fitting and predicting from fully-parametric multi-state models, and connects with the package (de Wreede, Fiocco, and Putter 2011). This article explains the methods and design principles of the package, giving several worked examples of its use.

Citing Articles

A Spline-Based Approach to Smoothly Constrain Hazard Ratios With a View to Apply Treatment Effect Waning.

Jennings A, Rutherford M, Lambert P Stat Med. 2025; 44(6):e70035.

PMID: 40059376 PMC: 11891414. DOI: 10.1002/sim.70035.


Cost-effectiveness of atezolizumab plus bevacizumab versus sorafenib as first-line therapy in unresectable hepatocellular carcinoma in the US and Chinese setting: a modelling comparison study.

Liu L, Wang L, Ding Y, Zhang Q, Shu Y BMJ Open. 2025; 15(3):e094804.

PMID: 40050065 PMC: 11887288. DOI: 10.1136/bmjopen-2024-094804.


Scam susceptibility is associated with a markedly accelerated onset of Alzheimer's disease dementia.

Boyle P, Wang T, Mottola G, Stewart C, Wilson R, Bennett D Alzheimers Dement. 2025; 21(3):e14544.

PMID: 40042433 PMC: 11881619. DOI: 10.1002/alz.14544.


Early economic evaluation of chelation therapy in kidney transplant recipients with high-normal lead.

Hao J, Alizadeh B, Postma M, Touw D, Bakker S, de Jong L PLoS One. 2025; 20(2):e0319022.

PMID: 40014627 PMC: 11867398. DOI: 10.1371/journal.pone.0319022.


New Methods for Two-Stage Treatment Switching Estimation.

Jackson D, Ran D, Zhang F, Ouwens M, Druker V, Sweeting M Pharm Stat. 2025; 24(1):e2462.

PMID: 39905716 PMC: 11794985. DOI: 10.1002/pst.2462.


References
1.
Heng D, Sharples L, McNeil K, Stewart S, Wreghitt T, Wallwork J . Bronchiolitis obliterans syndrome: incidence, natural history, prognosis, and risk factors. J Heart Lung Transplant. 1999; 17(12):1255-63. View

2.
Fiocco M, Putter H, van Houwelingen H . Reduced-rank proportional hazards regression and simulation-based prediction for multi-state models. Stat Med. 2008; 27(21):4340-58. DOI: 10.1002/sim.3305. View

3.
Hougaard P . Frailty models for survival data. Lifetime Data Anal. 1995; 1(3):255-73. DOI: 10.1007/BF00985760. View

4.
Muller H, Wang J . Hazard rate estimation under random censoring with varying kernels and bandwidths. Biometrics. 1994; 50(1):61-76. View

5.
Crowther M, Look M, Riley R . Multilevel mixed effects parametric survival models using adaptive Gauss-Hermite quadrature with application to recurrent events and individual participant data meta-analysis. Stat Med. 2014; 33(22):3844-58. DOI: 10.1002/sim.6191. View