get_tte_boundary | R 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.
get_tte_boundary(hr_bound, zval, alpha, n_event, rand_ratio)
hr_bound |
the HR boundary, significance is declared if observed HR <
|
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 |
a data frame about the relationships between the metrics
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.