get_tte_boundary: For a given event size and randomization ratio, calculate the...

View source: R/survival.R

get_tte_boundaryR Documentation

For a given event size and randomization ratio, calculate the boundaries for claiming significance. This is especially useful for group sequential trial with time-to-event endpoint.

Description

For a given event size and randomization ratio, calculate the boundaries for claiming significance. This is especially useful for group sequential trial with time-to-event endpoint.

Usage

get_tte_boundary(hr_bound, zval, alpha, n_event, rand_ratio)

Arguments

hr_bound

the HR boundary, significance is declared if observed HR < hr_bound

zval

the boundary at z-value level

alpha

the alpha level (if p value < alpha, significant)

n_event

number of events considered for the analysis

rand_ratio

randomization ratio in favor of treatment group

Value

a data frame about the relationships between the metrics

Examples

get_tte_boundary(hr_bound = NA, zval = NA, alpha = 0.003808063, 
                 n_event = 199.8, rand_ratio = 1)
# the results should match the following from rpact
# design1 <- rpact::getDesignGroupSequential(
# kMax = 2, alpha = 0.025, beta = 0.1, 
# informationRates = c(0.6, 1), typeOfDesign = "asOF")
# rpact::getSampleSizeSurvival(design = design1, thetaH0 = 1, 
#                       pi2 = 0.05, hazardRatio = 0.7 )
# NOT RUN

zhuob/R4ClinicalTrial documentation built on Feb. 4, 2025, 1:15 a.m.