simsurvdata | R Documentation |
Function for simulating survival data.
simsurvdata(n = 100, trt = 2, age = 2, sex = 1.5, cens = 0.3)
n |
|
trt , age , sex |
|
cens |
|
Currently limited to three covariates, Weibull survival times, and Type I censoring. This will be expanded to a flexible simulation function in future updates. For now the function is primarily limited to helping function examples.
data.frame()
simsurvdata()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.