op_power_surv {gsMAMS} | R Documentation |
Provides operating characteristics of group sequential MAMS trial for survival outcome
Description
Computes power and other characteristics for group-sequential MAMS trial for survival outcome.
Usage
op_power_surv(
m0,
alpha,
beta,
p,
frac,
hr0,
hr1,
nsim,
ta,
tf,
kappa,
eta,
seed
)
Arguments
m0 |
numeric Median survival time of control group. |
alpha |
numeric Type I error. |
beta |
numeric Type II error. |
p |
numeric Number of treatment arms. |
frac |
numeric Vector of fractions for information time at each look. |
hr0 |
numeric Hazard ratio of ineffective treatment group vs control. |
hr1 |
numeric Hazard ratio of effective treatment group vs control. |
nsim |
numeric Number of simulations. |
ta |
numeric Accrual time. |
tf |
numeric Follow-up time. |
kappa |
numeric Shape parameter (kappa=1 for exponential distribution). |
eta |
numeric Rate of loss to follow-up. |
seed |
numeric Random seed number. |
Value
A list of power, stage-wise probability of success, stopping probability, probability of futility, average number of events happened per arm, average duration of trial.
Examples
op_power_surv(m0 = 20,
alpha = 0.05,
beta = 0.1,
p = 4,
frac = c(1 / 2, 1),
hr0 = 1,
hr1 = 0.74,
ta = 12,
tf = 40,
nsim = 20,
kappa = 1,
eta = 0,
seed = 12)