flexsurv : A Platform for Parametric Survival Modeling in R
Open accessAbstract
flexsurv 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 survival 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. flexsurv also provides functions for fitting and predicting from fully-parametric multi-state models, and connects with the mstate 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.
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Integrity signals
Registry
Cites
Statistics
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Run the check — free, no account needed. It reads the open-access text and checks the sources it cites.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Cites
R: A Language and Environment for Statistical Computing
R Core Team (2000) · doi:10.32614/r.manuals · Cited by 355,706 · see citing works
(1996) · Institutional Research Information System University of Turin (University of Turin) · doi:10.1111/j · Cited by 5,486 · see citing works
Generalized additive models for location, scale and shape.
Rigby, R. A., & Stasinopoulos, D. M. (2005) · Journal of the Royal Statistical Society Series C: Applied Statistics · doi:10.1111/j.1467-9876.2005.00510.x · Cited by 3,228 · see citing works
Statistical Models Based on Counting Processes
Andersen, P. K., Borgan, Ø., Gill, R. D., & Keiding, N. (1993) · Springer series in statistics · doi:10.1007/978-1-4612-4348-9 · Cited by 2,895 · see citing works
Tutorial in biostatistics: competing risks and multi‐state models
Putter, H., Fiocco, M. F., & Geskus, R. B. (2006) · Statistics in Medicine · doi:10.1002/sim.2712 · Cited by 2,458 · see citing works
Regression Using Fractional Polynomials of Continuous Covariates: Parsimonious Parametric Modelling
Royston, P. J., & Altman, D. G. (1994) · Journal of the Royal Statistical Society Series C (Applied Statistics) · doi:10.2307/2986270 · Cited by 1,843 · see citing works
Solving Differential Equations in R: Package deSolve
Soetaert, K., Petzoldt, T., & Setzer, R. (2010) · Journal of Statistical Software · doi:10.18637/jss.v033.i09 · Cited by 1,694 · see citing works
Royston, P. J., & Parmar, M. (2002) · Statistics in Medicine · doi:10.1002/sim.1203 · Cited by 1,537 · see citing works
A Generalization of the Gamma Distribution
Stacy, E. W. (1962) · The Annals of Mathematical Statistics · doi:10.1214/aoms/1177704481 · Cited by 1,404 · see citing works
Multi-State Models for Panel Data: The msm Package for R
Jackson, C. H. (2011) · Journal of Statistical Software · doi:10.18637/jss.v038.i08 · Cited by 1,351 · see citing works
Self-citationSauerbrei, W., Royston, P. J., & Binder, H. (2007) · Statistics in Medicine · doi:10.1002/sim.3148 · Cited by 1,177 · see citing works
Further Development of Flexible Parametric Models for Survival Analysis
Lambert, P. C., & Royston, P. J. (2009) · The Stata Journal Promoting communications on statistics and Stata · doi:10.1177/1536867x0900900206 · Cited by 838 · see citing works
Survival and Event History Analysis
Aalen, O. O., Borgan, Ø., & Gjessing, H. K. (2008) · Statistics for Biology and Health · doi:10.1007/978-0-387-68560-1 · Cited by 813 · see citing works
The Analysis of Panel Data under a Markov Assumption
Kalbfleisch, J. D., & Lawless, J. F. (1985) · Journal of the American Statistical Association · doi:10.1080/01621459.1985.10478195 · Cited by 675 · see citing works
Multi-state models for event history analysis
Andersen, P. K., & Keiding, N. (2002) · Statistical Methods in Medical Research · doi:10.1191/0962280202sm276ra · Cited by 631 · see citing works
Frailty models for survival data
Hougaard, P. (1995) · Lifetime Data Analysis · doi:10.1007/bf00985760 · Cited by 584 · see citing works
Latimer, N. R. (2013) · Medical Decision Making · doi:10.1177/0272989x12472398 · Cited by 539 · see citing works
The BUGS Book: A Practical Introduction to Bayesian Analysis
Lunn, D. J., Jackson, C. H., Best, N., Thomas, A. C., & Spiegelhalter, D. J. (2012) · Cited by 530 · see citing works
Self-citationmstate : An R Package for the Analysis of Competing Risks and Multi-State Models
de Wreede, L. C., Fiocco, M. F., & Putter, H. (2011) · Journal of Statistical Software · doi:10.18637/jss.v038.i07 · Cited by 481 · see citing works
Sauerbrei, W., & Royston, P. J. (1999) · Journal of the Royal Statistical Society Series A (Statistics in Society) · doi:10.1111/1467-985x.00122 · Cited by 475 · see citing works
de Wreede, L. C., Fiocco, M. F., & Putter, H. (2010) · Computer Methods and Programs in Biomedicine · doi:10.1016/j.cmpb.2010.01.001 · Cited by 443 · see citing works
Compact Numerical Methods for Computers: Linear Algebra and Function Minimisation
Nash, J. C. (1990) · Cited by 399 · see citing works
Hazard Rate Estimation under Random Censoring with Varying Kernels and Bandwidths
Müller, H., & Wang, J. (1994) · Biometrics · doi:10.2307/2533197 · Cited by 341 · see citing works
A Log Gamma Model and Its Maximum Likelihood Estimation
Prentice, R. L. (1974) · Biometrika · doi:10.1093/biomet/61.3.539 · Cited by 331 · see citing works
Bronchiolitis obliterans syndrome: incidence, natural history, prognosis, and risk factors.
Heng, D. Y. C., Sharples, L. D., McNeil, K., Stewart, S., Wreghitt, T. G., & Wallwork, J. L. (1998) · PubMed · Cited by 292 · see citing works
Flexible Parametric Alternatives to the Cox Model, and more
Royston, P. J. (2001) · The Stata Journal Promoting communications on statistics and Stata · doi:10.1177/1536867x0100100101 · Cited by 259 · see citing works
The BUGS Book: A Practical Introduction to Bayesian Analysis
Fouley, J.-L. (2013) · CHANCE · doi:10.1080/09332480.2013.868759 · Cited by 259 · see citing works
Flexible parametric models for relative survival, with application in coronary heart disease
Nelson, C. P., Lambert, P. C., Squire, I. B., et al. (2007) · Statistics in Medicine · doi:10.1002/sim.3064 · Cited by 256 · see citing works
Therneau, T. M. (2001) · doi:10.32614/cran.package.survival · Cited by 238 · see citing works
The Theory of Stochastic Processes.
Griffiths, J. D., Cox, D., & Miller, H. D. (1967) · Journal of the Royal Statistical Society Series C (Applied Statistics) · doi:10.2307/2985780 · Cited by 208 · see citing works
Discrimination among some parametric models
Prentice, R. L. (1975) · Biometrika · doi:10.1093/biomet/62.3.607 · Cited by 185 · see citing works
A Conversation with Sir David Cox
Reid, N. M. (1994) · Statistical Science · doi:10.1214/ss/1177010394 · Cited by 178 · see citing works
Flexible Parametric Survival Analysis Using Stata: Beyond the Cox Model
Royston, P. J., & Lambert, P. C. (2011) · RePEc: Research Papers in Economics · Cited by 169 · see citing works
A general framework for parametric survival analysis
Crowther, M. J., & Lambert, P. C. (2014) · Statistics in Medicine · doi:10.1002/sim.6300 · Cited by 110 · see citing works
Crowther, M. J., Look, M. P., & Riley, R. D. (2014) · Statistics in Medicine · doi:10.1002/sim.6191 · Cited by 95 · see citing works
Simulation-Based Confidence Intervals for Functions With Complicated Derivatives
Mandel, M. (2013) · The American Statistician · doi:10.1080/00031305.2013.783880 · Cited by 77 · see citing works
Ieva, F., Jackson, C. H., & Sharples, L. D. (2015) · Statistical Methods in Medical Research · doi:10.1177/0962280215578777 · Cited by 73 · see citing works
Self-citationPolyhazard Models for Lifetime Data
Louzada, F. (1999) · Biometrics · doi:10.1111/j.0006-341x.1999.01281.x · Cited by 64 · see citing works
The generalized F distribution: An umbrella for parametric survival analysis
Cox, C. (2008) · Statistics in Medicine · doi:10.1002/sim.3292 · Cited by 62 · see citing works
Reduced‐rank proportional hazards regression and simulation‐based prediction for multi‐state models
Fiocco, M. F., Putter, H., & van Houwelingen, H. C. (2008) · Statistics in Medicine · doi:10.1002/sim.3305 · Cited by 59 · see citing works
Flexible Nonhomogeneous Markov Models for Panel Observed Data
Titman, A. (2011) · Biometrics · doi:10.1111/j.1541-0420.2010.01550.x · Cited by 45 · see citing works
Statistical Issues in Modeling Chronic Disease in Cohort Studies
Cook, R. J., & Lawless, J. F. (2013) · Statistics in Biosciences · doi:10.1007/s12561-013-9087-8 · Cited by 41 · see citing works
stgenreg: AStataPackage for General Parametric Survival Analysis
Crowther, M. J., & Lambert, P. C. (2013) · Journal of Statistical Software · doi:10.18637/jss.v053.i12 · Cited by 40 · see citing works
Survival extrapolation using the poly-Weibull model
Demiris, N., Lunn, D. J., & Sharples, L. D. (2011) · Statistical Methods in Medical Research · doi:10.1177/0962280211419645 · Cited by 37 · see citing works
Survival extrapolation in the presence of cause specific hazards
Benaglia, T., Jackson, C. H., & Sharples, L. D. (2014) · Statistics in Medicine · doi:10.1002/sim.6375 · Cited by 21 · see citing works
Self-citationFlexible Parametric Alternatives to the Cox Model: Update
Royston, P. J. (2004) · The Stata Journal Promoting communications on statistics and Stata · doi:10.1177/1536867x0100400112 · Cited by 19 · see citing works
A new R package for actuarial survival models
Nadarajah, S., & Bakar, S. A. A. (2013) · Computational Statistics · doi:10.1007/s00180-013-0400-2 · Cited by 12 · see citing works
flexsurv: Flexible Parametric Survival and Multi-State Models
Jackson, C. H. (2011) · doi:10.32614/cran.package.flexsurv · Cited by 6 · see citing works
Self-citation
Flagged first, then by citations
Research works printed but not linked: 1
- Yee T Wild C Vector Generalized Additive Models Journal of the Royal Statistical Society B 1996 58 3 481 493
Cited by
Sorted by citations
Shortfalls and opportunities in terrestrial vertebrate species discovery
Moura, M. R., & Jetz, W. (2021) · Nature Ecology & Evolution · doi:10.1038/s41559-021-01411-5 · Cited by 196 · see citing works
Staudt, Y., & Wagner, J. (2022) · Risks · doi:10.3390/risks10100187 · Cited by 7 · see citing works
- Authors
- Jackson, C.
- Affiliations
- MRC Biostatistics Unit (GB)
- Corresponding author
- Jackson, Christopher
- ORCID
- Jackson, Christopher
- Venue
- Journal of Statistical Software
- Publisher
- Foundation for Open Access Statistic
- Published
- 2016
- Volume
- 70
- Issue
- 8
- ISSN
- 1548-7660 (ISSN-L)
- PMC
- PMC5868723
- OpenAlex
- W2377410957
- Cited by
- 558
- References
- 48
- Citations by year
- 2026: 62 · 2025: 79 · 2024: 66 · 2023: 60 · 2022: 63 · 2021: 78 · 2020: 45 · 2019: 41 · 2018: 47 · 2017: 13 · 2016: 4
- FWCI
- 35.46
- Type
- journal article
- Language
- en
- Open access
- diamond
- doi.org
- Licence
- cc-by
- Locations
- Journal of Statistical Software (publishedVersion, cc-by)
- PubMed (publishedVersion)
- PubMed Central (acceptedVersion)
- RePEc: Research Papers in Economics (submittedVersion)
- DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
- Funders
- Medical Research Council (U015232027)
- Topics
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Distribution Estimation and Applications
- Physical Sciences › Computer Science › Artificial Intelligence › Data Analysis with R
- Physical Sciences › Mathematics › Statistics and Probability › Statistical Methods and Inference
- Keywords
- R package, generalized gamma distribution, F distribution, spline models, Royston-Parmar model, multi-state models, covariate effects, censoring, left truncation, log-likelihood maximization
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review