sim_tite_data {stoppingrule} | R Documentation |
Simulate time-to-event data for safety monitoring under Weibull distribution or power family (TITE Method)
Description
Simulate time-to-event data for safety monitoring under Weibull distribution or power family (TITE Method)
Usage
sim_tite_data(n, p, tau, A, family, s)
Arguments
n |
Sample size |
p |
Vector of cumulative incidence probabilities at time |
tau |
Length of observation period |
A |
Length of accrual period |
family |
Event time distribution, choices including Weibull distribution ('weibull'), or power family ('power') |
s |
Shape parameter for Weibull distribution or power parameter for power family |
Value
A matrix with three columns: patient enrollment time, event time, and event indicator
Functions
-
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 sizen
is generated from a Weibull distribution with shape parameters
or power family distribution with power parameters
to attain a toxicity rate matching the first element ofp
at event timetau
. Enrollment times are also simulated over an accrual period of durationA
under a uniform (0,A
) distribution.