powered by
Simulate right censored survival data with two covariates X1 and X2, both have effect exp(1) on the hazard of the unobserved event time.
SimSurv(N, ...)
data.frame with simulated data
sample size
do nothing
Thomas Alexander Gerds
This function calls survModel, then adds covariates and finally calls sim.lvm.
survModel
sim.lvm
Bender, Augustin & Blettner. Generating survival times to simulate Cox proportional hazards models. Statistics in Medicine, 24: 1713-1723, 2005.
SimSurv(10)
Run the code above in your browser using DataLab