Description Usage Arguments Value
View source: R/predSurv_tools.R
Simulate a survival dataset
1 2 3 4 5 6 7 | predsu_simu(
n = 300,
t_ana = 1,
t_enrollment = 0.25,
lambda_surv = 1,
lambda_censor = 0.5
)
|
n |
Sample size |
t_ana |
Time from study starts to the (interim) anlysis |
t_enrollment |
Time from study starts to the enrollment finishes |
A dataframe with enrollment time, time of survival, time of censoring, time of event (survival or censoring), and the indicator of censoring
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.