flexsurv2.3.2 package

Flexible Parametric Survival and Multi-State Models

pmatrix.fs

Transition probability matrix from a fully-parametric, time-inhomogene...

pmatrix.simfs

Transition probability matrix from a fully-parametric, semi-Markov mul...

ppath_fmixmsm

Probability of each pathway taken through a mixture multi-state model

predict.flexsurvreg

Predictions from flexible survival models

probs_flexsurvmix

Probabilities of competing events from a flexsurvmix model

qfinal_fmixmsm

Quantiles of the distribution of the time until reaching a final state...

qgeneric

Generic function to find quantiles of a distribution

quantile_flexsurvmix

Quantiles of time-to-event distributions in a flexsurvmix model

reexports

Objects exported from other packages

simt_flexsurvmix

Simulate times to competing events from a mixture multi-state model

AIC.fmsm

Akaike's information criterion from a flexible parametric multistate m...

AICc.flexsurvreg

Second-order Akaike information criterion

AICc

Second-order Akaike information criterion

ajfit_flexsurvmix

Forms a tidy data frame for plotting the fit of parametric mixture mul...

ajfit_fmsm

Check the fit of Markov flexible parametric multi-state models against...

ajfit

Aalen-Johansen nonparametric estimates comparable to a fitted flexsurv...

augment.flexsurvreg

Augment data with information from a flexsurv model object

basis

Natural cubic spline basis

tidy.standsurv

Tidy a standsurv object.

totlos.fs

Total length of stay in particular states for a fully-parametric, time...

BIC.flexsurvreg

Bayesian Information Criterion (BIC) for comparison of flexsurvreg mod...

bootci.fmsm

Bootstrap confidence intervals for flexsurv output functions

bos

Bronchiolitis obliterans syndrome after lung transplants

coef.flexsurvreg

Extract model coefficients from fitted flexible survival models

totlos.simfs

Expected total length of stay in specific states, from a fully-paramet...

coxsnell_flexsurvreg

Cox-Snell residuals from a parametric survival model

dot-hess_to_cov

helper function to safely convert a Hessian matrix to covariance matri...

dot-hessian

Numerical evaluation of the hessian of a function using numDeriv::hess...

flexsurv-package

flexsurv: Flexible parametric survival and multi-state models

flexsurvmix

Flexible parametric mixture models for times to competing events

flexsurvreg

Flexible parametric regression for time-to-event data

flexsurvrtrunc

Flexible parametric models for right-truncated, uncensored data define...

flexsurvspline

Flexible survival regression using the Royston/Parmar spline model.

fmixmsm

Constructor for a mixture multi-state model based on flexsurvmix

fmsm

Construct a multi-state model from a set of parametric survival models

GenF.orig

Generalized F distribution (original parameterisation)

GenF

Generalized F distribution

GenGamma.orig

Generalized gamma distribution (original parameterisation)

GenGamma

Generalized gamma distribution

get_basepars

Evaluate baseline time-to-event distribution parameters given covariat...

glance.flexsurvreg

Glance at a flexsurv model object

Gompertz

The Gompertz distribution

hazard

Hazard and cumulative hazard functions

hr_flexsurvreg

Hazard ratio as a function of time from a parametric survival model

lines.flexsurvreg

Add fitted flexible survival curves to a plot

Llogis

The log-logistic distribution

logLik.flexsurvreg

Log likelihood from a flexsurvreg model

mean_flexsurvmix

Mean times to events from a flexsurvmix model

meanfinal_fmixmsm

Mean time to final state in a mixture multi-state model

means

Mean and restricted mean survival functions

model.frame.flexsurvmix

Model frame from a flexsurvmix object

model.frame.flexsurvreg

Extract original data from flexsurvreg objects.

msfit.flexsurvreg

Cumulative intensity function for parametric multi-state models

nobs.flexsurvreg

Number of observations contributing to a fitted flexible survival mode...

normboot.flexsurvreg

Simulate from the asymptotic normal distribution of parameter estimate...

p_flexsurvmix

Transition probabilities from a flexsurvmix model

pars.fmsm

Transition-specific parameters in a flexible parametric multi-state mo...

pdf_flexsurvmix

Fitted densities for times to events in a flexsurvmix model

pfinal_fmsm

Probabilities of final states in a flexible parametric competing risks...

plot_survtrunc

Plot nonparametric estimates of survival from right-truncated data.

plot.flexsurvreg

Plots of fitted flexible survival models

plot.standsurv

Plot standardized metrics from a fitted flexsurv model

residuals.flexsurvreg

Calculate residuals for flexible survival models

rmst_flexsurvmix

Restricted mean times to events from a flexsurvmix model

rmst_generic

Generic function to find restricted mean survival time for some distri...

sim.fmsm

Simulate paths through a fully parametric semi-Markov multi-state mode...

simfinal_fmsm

Simulate and summarise final outcomes from a flexible parametric multi...

simfs_bytrans

Reformat simulated multi-state data with one row per simulated transit...

simulate.flexsurvreg

Simulate censored time-to-event data from a fitted flexsurvreg model

standsurv

Marginal survival and hazards of fitted flexsurvreg models

summary.flexsurvreg

Summaries of fitted flexible survival models

summary.flexsurvrtrunc

Summarise quantities of interest from fitted flexsurvrtrunc models

survrtrunc

Nonparametric estimator of survival from right-truncated, uncensored d...

Survspline

Royston/Parmar spline survival distribution

Survsplinek

Royston/Parmar spline survival distribution functions with one argumen...

tidy.flexsurvreg

Tidy a flexsurv model object

unroll.function

Convert a function with matrix arguments to a function with vector arg...

vcov.flexsurvreg

Variance-covariance matrix from a flexsurvreg model

WeibullPH

Weibull distribution in proportional hazards parameterisation

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.

  • Maintainer: Christopher Jackson
  • License: GPL (>= 2)
  • Last published: 2024-08-17