data_gen2.Rd
Data generation function from covariate adjusted log-rank paper
data_gen2(
n,
theta,
randomization,
p_trt,
case = c("case1", "case2", "case3", "case4"),
blocksize = 4
)
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
block size for permuted block design
A data frame with the following columns:
event time
event indicator
assignment to treatment group 1
assignment to treatment group 0
covariates
strata variables