Simulate time-to-event data for safety monitoring under Weibull distribution or power family (TITE Method)
sim_tite_data(n, p, tau, A, family, s)A matrix with three columns: patient enrollment time, event time, and event indicator
Sample size
Vector of cumulative incidence probabilities at time tau for all causes (length 1 for survival, 2 for competing risks)
Length of observation period
Length of accrual period
Event time distribution, choices including Weibull distribution ('weibull'), or power family ('power')
Shape parameter for Weibull distribution or power parameter for power family
sim_tite_data(): function to simulate time-to-event data from either Weibull or power family distribution for evaluating safety
monitoring rules. A random sample of size n is generated from a Weibull
distribution with shape parameter s or power family distribution with power parameter s to attain a toxicity rate matching the first element of p at
event time tau. Enrollment times are also simulated over an accrual period
of duration A under a uniform (0,A) distribution.