data_gen.Rd
Data generation function from JRSS-B paper
data_gen(
n,
theta,
randomization,
p_trt,
case = c("case1", "case2", "case3", "case4", "case5")
)
total number of subjects to be generated
true treatment effect
randomization method in c("SR","CABC","permuted_block","minimization","urn")
proportion of treatment arm
simulation case in the paper
A data frame with the following columns:
event time
event indicator
assignment to treatment group 1
assignment to treatment group 0
covariates
strata variables