Package: simsurv 1.0.1.9000

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. For details see the supporting paper <doi:10.18637/jss.v097.i03>. 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) <doi:10.1002/sim.5823>).

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

simsurv_1.0.1.9000.tar.gz
simsurv_1.0.1.9000.zip(r-4.7)simsurv_1.0.1.9000.zip(r-4.6)simsurv_1.0.1.9000.zip(r-4.5)
simsurv_1.0.1.9000.tgz(r-4.6-any)simsurv_1.0.1.9000.tgz(r-4.5-any)
simsurv_1.0.1.9000.tar.gz(r-4.7-any)simsurv_1.0.1.9000.tar.gz(r-4.6-any)
simsurv_1.0.1.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
simsurv/json (API)

# Install 'simsurv' in R:
install.packages('simsurv', repos = c('https://sambrilleman.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/sambrilleman/simsurv/issues

Datasets:

On CRAN:

Conda:

7.66 score 24 stars 2 packages 318 scripts 865 downloads 1 exports 0 dependencies

Last updated from:60e414468d. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK129
source / vignettesOK286
linux-release-x86_64OK507
macos-release-arm64OK173
macos-oldrel-arm64OK148
windows-develOK86
windows-releaseOK72
windows-oldrelOK79
wasm-releaseOK112

Exports:simsurv

Dependencies:

Technical background to the simsurv package
Preamble | Introduction | Cumulative hazard inversion method (Bender et al. (2005)) | Exponential distribution | Weibull distribution | Gompertz distribution | Numerical root finding | Exponential mixture distribution | Weibull mixture distribution | Gompertz mixture distribution | Extending to time-dependent effects or user-defined hazard functions | References

Last update: 2019-02-06
Started: 2018-02-26

How to use the simsurv package
Preamble | Usage examples | Example 1: Simulating under a standard parametric survival model | Example 2: Simulating under a flexible parametric survival model | Example 3: Simulating under a Weibull model with time-dependent effects | Example 4: Simulating under a joint model for longitudinal and survival data | References

Last update: 2019-02-01
Started: 2018-02-26