Learn R Programming

stoppingrule (version 0.6)

sim_tite_data: 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)

Value

A matrix with three columns: patient enrollment time, event time, and event indicator

Arguments

n

Sample size

p

Vector of cumulative incidence probabilities at time tau for all causes (length 1 for survival, 2 for competing risks)

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

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 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.