Generate survival data with restricted follow-up from Weibull distribution.
GenDat_rKJ(shape, S_fixed, x_fixed, rate, t1, x, n, seed)Two dataframes: data (the full data for final analysis) and data_t1 (the data for interim analysis), both containing the following 4 variables:
Entry time when each patient enters the trial, assumed to be uniform from 0 to ta with ta as the time when enrollment ends.
time the time under observation during entire trial (in data) or before t1 (in data_t1) for each patient.
status the status indicator of patients (event = 1, censored = 0), which can be different between data and data_t1.
Total the sum of Entry and time.
shape parameter for WB distribution.
survival probability at the fixed time point x_fixed.
a fixed time point where the survival probability is known.
a constant accrual rate.
the time when interim analysis happens.
the restricted follow-up time period, during which patients are monitored.
sample size.
seed used for the random sample generation.