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

Install the latest version of this package by entering the following in R:
install.packages("flexsurv")
AuthorChristopher Jackson [aut, cre], Paul Metcalfe [ctb], Jordan Amdahl [ctb]
Date of publication2017-03-27 14:03:47 UTC
MaintainerChristopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk>
LicenseGPL (>= 2)
Version1.1
https://github.com/chjackson/flexsurv-dev

View on CRAN

Man pages

basis: Natural cubic spline basis

bc: Breast cancer survival data

bos: Bronchiolitis obliterans syndrome after lung transplants

coef.flexsurvreg: Extract model coefficients from fitted flexible survival...

flexsurv-package: flexsurv: Flexible parametric survival and multi-state models

flexsurvreg: Flexible parametric regression for time-to-event data

flexsurvspline: Flexible survival regression using the Royston/Parmar spline...

GenF: Generalized F distribution

GenF.orig: Generalized F distribution (original parameterisation)

GenGamma: Generalized gamma distribution

GenGamma.orig: Generalized gamma distribution (original parameterisation)

Gompertz: The Gompertz distribution

hazard: Hazard and cumulative hazard functions

lines.flexsurvreg: Add fitted flexible survival curves to a plot

Llogis: The log-logistic distribution

means: Mean and restricted mean survival functions

model.frame.flexsurvreg: Extract original data from 'flexsurvreg' objects.

msfit.flexsurvreg: Cumulative intensity function for parametric multi-state...

normboot.flexsurvreg: Simulate from the asymptotic normal distribution of parameter...

pars.fmsm: Transition-specific parameters in a flexible parametric...

plot.flexsurvreg: Plots of fitted flexible survival models

pmatrix.fs: Transition probability matrix from a fully-parametric,...

pmatrix.simfs: Transition probability matrix from a fully-parametric,...

qgeneric: Generic function to find quantiles of a distribution

rmst_generic: Generic function to find restricted mean survival of a...

sim.fmsm: Simulate paths through a fully parametric semi-Markov...

summary.flexsurvreg: Summaries of fitted flexible survival models

Survspline: Royston/Parmar spline survival distribution

totlos.fs: Total length of stay in particular states for a...

totlos.simfs: Expected total length of stay in specific states, from a...

unroll.function: Convert a function with matrix arguments to a function with...

WeibullPH: Weibull distribution in proportional hazards parameterisation

Functions

basis Man page
bc Man page
bos Man page
bosms3 Man page
bosms4 Man page
coef.flexsurvreg Man page
dbasis Man page
dfss Man page
dgenf Man page
dgenf.orig Man page
dgengamma Man page
dgengamma.orig Man page
dgompertz Man page
dllogis Man page
dsurvspline Man page
dweibullPH Man page
flexsurv Man page
flexsurv.dists Man page
flexsurv-package Man page
flexsurvreg Man page
flexsurvspline Man page
fss Man page
GenF Man page
GenF.orig Man page
GenGamma Man page
GenGamma.orig Man page
Gompertz Man page
hazard Man page
hexp Man page
Hexp Man page
hgamma Man page
Hgamma Man page
hgenf Man page
Hgenf Man page
hgenf.orig Man page
Hgenf.orig Man page
hgengamma Man page
Hgengamma Man page
hgengamma.orig Man page
Hgengamma.orig Man page
hgompertz Man page
Hgompertz Man page
hllogis Man page
Hllogis Man page
hlnorm Man page
Hlnorm Man page
hsurvspline Man page
Hsurvspline Man page
hweibull Man page
Hweibull Man page
hweibullPH Man page
HweibullPH Man page
lines.flexsurvreg Man page
Llogis Man page
mean_exp Man page
mean_gamma Man page
mean_genf Man page
mean_genf.orig Man page
mean_gengamma Man page
mean_gengamma.orig Man page
mean_gompertz Man page
mean_llogis Man page
mean_lnorm Man page
means Man page
mean_survspline Man page
mean_weibull Man page
mean_weibullPH Man page
model.frame.flexsurvreg Man page
model.matrix.flexsurvreg Man page
msfit.flexsurvreg Man page
normboot.flexsurvreg Man page
_PACKAGE Man page
pars.fmsm Man page
pgenf Man page
pgenf.orig Man page
pgengamma Man page
pgengamma.orig Man page
pgompertz Man page
pllogis Man page
plot.flexsurvreg Man page
pmatrix.fs Man page
pmatrix.simfs Man page
psurvspline Man page
pweibullPH Man page
qgeneric Man page
qgenf Man page
qgenf.orig Man page
qgengamma Man page
qgengamma.orig Man page
qgompertz Man page
qllogis Man page
qsurvspline Man page
qweibullPH Man page
rgenf Man page
rgenf.orig Man page
rgengamma Man page
rgengamma.orig Man page
rgompertz Man page
rllogis Man page
rmst_exp Man page
rmst_gamma Man page
rmst_generic Man page
rmst_genf Man page
rmst_genf.orig Man page
rmst_gengamma Man page
rmst_gengamma.orig Man page
rmst_gompertz Man page
rmst_llogis Man page
rmst_lnorm Man page
rmst_survspline Man page
rmst_weibull Man page
rmst_weibullPH Man page
rsurvspline Man page
rweibullPH Man page
sim.fmsm Man page
summary.flexsurvreg Man page
Survspline Man page
totlos.fs Man page
totlos.simfs Man page
unroll.function Man page
WeibullPH Man page

Files

inst
inst/CITATION
inst/NEWS
inst/doc
inst/doc/flexsurv-examples.pdf
inst/doc/flexsurv.R inst/doc/flexsurv-examples.R
inst/doc/flexsurv.pdf
tests
tests/test_base.R
tests/testthat
tests/testthat/test_utils.R tests/testthat/test_outputs.R tests/testthat/test_flexsurvreg.R tests/testthat/test_custom.R tests/testthat/test_spline.R tests/testthat/test_gengamma_orig.R tests/testthat/test_genf.R tests/testthat/test_gengamma.R tests/testthat/test_deriv.R tests/testthat/test_splinedist.R tests/testthat/test_genf_orig.R tests/testthat/test_mstate.R tests/testthat/test_gompertz.R tests/testthat/test_llogis.R
src
src/genf.cpp
src/rep_len.h
src/gengamma.h
src/splines.cpp
src/llogis.cpp
src/mapply.h
src/special.cpp
src/mapply_4.h
src/gompertz.cpp
src/flexsurv-init.c
src/gengamma.cpp
src/RcppExports.cpp
src/distribution.h
src/mapply_5.h
NAMESPACE
data
data/bc.txt
data/bc.rda
data/bosms3.rda
data/bosms4.rda
Changelog
R
R/Llogis.R R/flexsurv-package.R R/utils.R R/mstate.R R/Gompertz.R R/custom.R R/Exp.R R/flexsurvreg.R R/distributions.R R/spline.R R/fracpoly.R R/RcppExports.R R/GenGamma.R R/unroll.function.R R/deriv.R R/Gamma.R R/GenF.R R/Weibull.R R/Lnorm.R R/WeibullPH.R
vignettes
vignettes/flexsurv.bib
vignettes/bosmsm.pdf
vignettes/flexsurv-examples.Rnw
vignettes/flexsurv.Rnw
MD5
build
build/vignette.rds
DESCRIPTION
man
man/totlos.fs.Rd man/coef.flexsurvreg.Rd man/GenF.Rd man/rmst_generic.Rd man/basis.Rd man/GenGamma.orig.Rd man/sim.fmsm.Rd man/model.frame.flexsurvreg.Rd man/Gompertz.Rd man/pmatrix.simfs.Rd man/pars.fmsm.Rd man/flexsurvreg.Rd man/summary.flexsurvreg.Rd man/Llogis.Rd man/totlos.simfs.Rd man/means.Rd man/flexsurvspline.Rd man/plot.flexsurvreg.Rd man/bc.Rd man/hazard.Rd man/WeibullPH.Rd man/normboot.flexsurvreg.Rd man/msfit.flexsurvreg.Rd man/pmatrix.fs.Rd man/GenGamma.Rd man/flexsurv-package.Rd man/bos.Rd man/GenF.orig.Rd man/qgeneric.Rd man/Survspline.Rd man/lines.flexsurvreg.Rd man/unroll.function.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.