simsurv: 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. Note that this package is modelled on the 'survsim' package available in the 'Stata' software (see Crowther and Lambert (2012) <> or Crowther and Lambert (2013) <doi:10.1002/sim.5823>).

Version: 0.2.3
Depends: R (≥ 3.3.0)
Imports: methods, stats
Suggests: BB (≥ 2014.10.1), eha (≥ 2.4.5), flexsurv (≥ 1.1.0), knitr (≥ 1.15.1), MASS, rstpm2 (≥ 1.4.1), survival (≥ 2.40.1), testthat (≥ 1.0.2)
Published: 2019-02-01
Author: Sam Brilleman [cre, aut, cph], Alessandro Gasparini [ctb]
Maintainer: Sam Brilleman <sam.brilleman at>
License: GPL (≥ 3) | file LICENSE
NeedsCompilation: no
Materials: NEWS
In views: Survival
CRAN checks: simsurv results


Reference manual: simsurv.pdf
Vignettes: Technical background to the simsurv package
How to use the simsurv package
Package source: simsurv_0.2.3.tar.gz
Windows binaries: r-devel:, r-release:, r-oldrel:
macOS binaries: r-release: simsurv_0.2.3.tgz, r-oldrel: simsurv_0.2.3.tgz
Old sources: simsurv archive

Reverse dependencies:

Reverse suggests: BayesSurvival, KMunicate, mlr3proba


Please use the canonical form to link to this page.