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

Value

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

Functions


[Package stoppingrule version 0.6 Index]