Description Usage Arguments Examples
Generate Survival data for Sample size re-estimation method using the framework of Relative time method
1 | Data(a, f, beta0, median_c, p1, p2, RT_P1, RT_P2, scenario)
|
a |
numeric variable |
f |
numeric variable |
beta0 |
numeric variable |
median_c |
numeric variable |
p1 |
numeric variable |
p2 |
numeric variable |
RT_P1 |
numeric variable |
RT_P2 |
numeric variable |
scenario |
numeric variable between 1 and 4 |
1 2 3 4 5 6 7 8 9 10 | Data(a = 12,f = 6,beta0 = 0.25,median_c = 4,p1 = 0.10,p2 = 0.90,RT_P1 = 1.52,RT_P2 = 1.98,scenario = 1)
set.seed(222)
interim <- Data(a = 12,f = 6,beta0 = 0.25,median_c = 4,p1 = 0.10,p2 = 0.90,RT_P1 = 1.52,RT_P2 = 1.98,scenario = 1)
sum(interim$new.event)
## Not run:
set.seed(222)
interim <- Data(a = 12,f = 6,beta0 = 0.25,median_c = 4,p1 = 0.10,p2 = 0.90,RT_P1 = 1.52,RT_P2 = 1.98,scenario = 1)
sum(interim$new.event)
#'
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.