Learn R Programming

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

flexsurv (version 1.0.0)

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,465

Version

1.0.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Christopher Jackson

Last Published

May 11th, 2016

Functions in flexsurv (1.0.0)

GenGamma

Generalized gamma distribution
GenF

Generalized F distribution
Llogis

The log-logistic distribution
flexsurvspline

Flexible survival regression using the Royston/Parmar spline model.
flexsurv-package

flexsurv: Flexible parametric survival and multi-state models
sim.fmsm

Simulate paths through a fully parametric semi-Markov multi-state model
unroll.function

Convert a function with matrix arguments to a function with vector arguments.
Hazard and cumulative hazard functions for standard distributions

Hazard and cumulative hazard functions
msfit.flexsurvreg

Cumulative intensity function for parametric multi-state models
pmatrix.simfs

Transition probability matrix from a fully-parametric, semi-Markov multi-state model
lines.flexsurvreg

Add fitted flexible survival curves to a plot
GenGamma.orig

Generalized gamma distribution (original parameterisation)
GenF.orig

Generalized F distribution (original parameterisation)
WeibullPH

Weibull distribution in proportional hazards parameterisation
Survspline

Royston/Parmar spline survival distribution
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
totlos.simfs

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

Natural cubic spline basis
model.frame.flexsurvreg

Extract original data from flexsurvreg objects.
bc

Breast cancer survival data
Gompertz

The Gompertz distribution
bos

Bronchiolitis obliterans syndrome after lung transplants
normboot.flexsurvreg

Simulate from the asymptotic normal distribution of parameter estimates.
qgeneric

Generic function to find quantiles of a distribution
pars.fmsm

Transition-specific parameters in a flexible parametric multi-state model
pmatrix.fs

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

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

Plots of fitted flexible survival models