cpsurvsim | R Documentation |
The cpsurvsim package simulates time-to-event data with type I right censoring using two methods: the inverse CDF method and a memoryless method (for more information on simulation methods, see the vignette). We include two parametric distributions: exponential and Weibull.
For the exponential distribution, the exp_icdf
function simulates values from the inverse exponential distribution.
exp_cdfsim
and exp_memsim
return
time-to-event datasets simulated using the inverse CDF and memoryless
methods respectively.
For the Weibull distribution, the weib_icdf
function
simulates values from the inverse Weibull distribution.
weib_cdfsim
and weib_memsim
return
time-to-event datasets simulated using the inverse CDF and memoryless
methods respectively.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.