Simulate survival times from standard parametric survival distributions (exponential, Weibull, Gompertz), 2component mixture distributions, or a userdefined 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. nonproportional hazards) can be included by interacting covariates with linear time or a userdefined function of time. Clustered event times are also accommodated. The 2component mixture distributions can allow for a variety of flexible baseline hazard functions reflecting those seen in practice. If the user wishes to provide a userdefined hazard or log hazard function then this is possible, and the resulting cumulative hazard function does not need to have a closedform solution. Note that this package is modelled on the 'survsim' package available in the 'Stata' software (see Crowther and Lambert (2012) <http://www.statajournal.com/sjpdf.html?articlenum=st0275> or Crowther and Lambert (2013) <doi:10.1002/sim.5823>).
Package details 


Maintainer  Sam Brilleman <[email protected]> 
License  GPL (>=3)  file LICENSE 
Version  0.2.59000 
Package repository  View on GitHub 
Installation 
Install the latest version of this package by entering the following in R:

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.