Learn R Programming

⚠️There's a newer version (2.3.2) of this package.Take me there.

flexsurv (version 1.1.1)

Flexible Parametric Survival and Multi-State Models

Description

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.

Copy Link

Version

Install

install.packages('flexsurv')

Monthly Downloads

8,143

Version

1.1.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Last Published

March 18th, 2019

Functions in flexsurv (1.1.1)

model.frame.flexsurvreg

Extract original data from flexsurvreg objects.
pmatrix.simfs

Transition probability matrix from a fully-parametric, semi-Markov multi-state model
qgeneric

Generic function to find quantiles of a distribution
Gompertz

The Gompertz distribution
Llogis

The log-logistic distribution
flexsurvspline

Flexible survival regression using the Royston/Parmar spline model.
hexp

Hazard and cumulative hazard functions
GenF

Generalized F distribution
Survspline

Royston/Parmar spline survival distribution
GenGamma

Generalized gamma distribution
WeibullPH

Weibull distribution in proportional hazards parameterisation
rmst_generic

Generic function to find restricted mean survival of a distribution
GenGamma.orig

Generalized gamma distribution (original parameterisation)
bos

Bronchiolitis obliterans syndrome after lung transplants
coef.flexsurvreg

Extract model coefficients from fitted flexible survival models
plot.flexsurvreg

Plots of fitted flexible survival models
sim.fmsm

Simulate paths through a fully parametric semi-Markov multi-state model
GenF.orig

Generalized F distribution (original parameterisation)
lines.flexsurvreg

Add fitted flexible survival curves to a plot
mean_exp

Mean and restricted mean survival functions
normboot.flexsurvreg

Simulate from the asymptotic normal distribution of parameter estimates.
pars.fmsm

Transition-specific parameters in a flexible parametric multi-state model
totlos.simfs

Expected total length of stay in specific states, from a fully-parametric, semi-Markov multi-state model
unroll.function

Convert a function with matrix arguments to a function with vector arguments.
pmatrix.fs

Transition probability matrix from a fully-parametric, time-inhomogeneous Markov multi-state model
basis

Natural cubic spline basis
bc

Breast cancer survival data
flexsurv-package

flexsurv: Flexible parametric survival and multi-state models
flexsurvreg

Flexible parametric regression for time-to-event data
summary.flexsurvreg

Summaries of fitted flexible survival models
totlos.fs

Total length of stay in particular states for a fully-parametric, time-inhomogeneous Markov multi-state model
msfit.flexsurvreg

Cumulative intensity function for parametric multi-state models