Flexible Parametric Survival and Multi-State Models

Flexible parametric models for time-to-event data, including the Royston-Parmar spline model, generalized gamma and generalized F distributions. Any user-defined parametric distribution can be fitted, given at least an R function defining the probability density or hazard. There are also tools for fitting and predicting from fully parametric multi-state models, based on either cause-specific hazards or mixture models.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("flexsurv")

2.3.2 by Christopher Jackson, 2 years ago


https://github.com/chjackson/flexsurv, http://chjackson.github.io/flexsurv/


Report a bug at https://github.com/chjackson/flexsurv/issues


Browse source code at https://github.com/cran/flexsurv


Authors: Christopher Jackson [aut, cre] , Paul Metcalfe [ctb] , Jordan Amdahl [ctb] , Matthew T. Warkentin [ctb] , Michael Sweeting [ctb] , Kevin Kunzmann [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports assertthat, deSolve, generics, magrittr, mstate, Matrix, muhaz, mvtnorm, numDeriv, quadprog, Rcpp, rlang, rstpm2, purrr, statmod, tibble, tidyr, dplyr, tidyselect, ggplot2

Depends on survival

Suggests splines2, flexsurvcure, survminer, lubridate, rmarkdown, colorspace, eha, knitr, msm, testthat, TH.data, broom, covr

Linking to Rcpp


Imported by AHSurv, AmoudSurv, BayesPIM, CopulaCenR, Countr, EMGCR, EventPredInCure, HCTDesign, LSJM, MNB, NetSurvProx, OneArm2stage, PERSUADE, RealSurvSim, SEI, SHELF, Surrogate, WARDEN, bayesCureRateModel, baytaAAR, blendR, cureAssess, cyclomort, debest, easysurv, educineq, eventPred, fssg, gompertztrunc, hdcuremodels, hesim, iclogcondist, mixcure, mlt.docreg, mortAAR, pacheck, parTimeROC, parmsurvfit, psc, psm3mkv, surv2sampleComp, survalis, survivalSL.

Depended on by flexsurvcure, reslife, survHE.

Suggested by BetaDanish, RoBSA, SuperSurv, admix, burgle, butcher, calibmsm, censored, dynamicpv, fastml, fic, fitteR, ggamma, heemod, icpack, maicplus, marginaleffects, msm, multinma, pcvr, primarycensored, psborrow, psborrow2, riskRegression, rpsurv, rstpm2, rsurv, simsurv, smcfcs, spicy, survParamSim, survex, survextrap, survminer, tidyAML, tram.


See at CRAN