Simulate Survival Data

Simulate survival times from standard parametric survival distributions (exponential, Weibull, Gompertz), 2-component mixture distributions, or a user-defined hazard, log hazard, cumulative hazard, or log cumulative hazard function. Baseline covariates can be included under a proportional hazards assumption. Time dependent effects (i.e. non-proportional hazards) can be included by interacting covariates with linear time or a user-defined function of time. Clustered event times are also accommodated. The 2-component mixture distributions can allow for a variety of flexible baseline hazard functions reflecting those seen in practice. If the user wishes to provide a user-defined hazard or log hazard function then this is possible, and the resulting cumulative hazard function does not need to have a closed-form solution. For details see the supporting paper . Note that this package is modelled on the 'survsim' package available in the 'Stata' software (see Crowther and Lambert (2012) < https://www.stata-journal.com/sjpdf.html?articlenum=st0275> or Crowther and Lambert (2013) ).


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("simsurv")

1.0.1 by Sam Brilleman, 9 months ago


Report a bug at https://github.com/sambrilleman/simsurv/issues


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


Authors: Sam Brilleman [cre, aut, cph] , Alessandro Gasparini [ctb]


Documentation:   PDF Manual  


GPL (>= 3) | file LICENSE license


Imports methods, stats

Suggests BB, eha, flexsurv, knitr, MASS, rmarkdown, rstpm2, survival, testthat


Imported by pacheck, psborrow2.

Suggested by BayesSurvival, KMunicate, pmcalibration, smdi.


See at CRAN