Description Usage Arguments Details References
simTrial
simulates an adaptive enrichment trial design, using the method from Rosenblum et al. (2016), in order to compute the following
performance criteria: power, expected sample size, and expected duration. simTrial_Maurer_Bretz_2013
follows an analogous procedure using the method from Maurer & Bretz (2013).
Let H01, H02 and H0C respectively denote the null hypotheses that there is no treatment effect in subpopulation 1, subpopulation 2 and the combined population.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | simTrial(p1, r1, r2, mean_s1_trt = NULL, mean_s1_con = NULL,
mean_s2_trt = NULL, mean_s2_con = NULL, var_s1_trt = NULL,
var_s1_con = NULL, var_s2_trt = NULL, var_s2_con = NULL, iter,
time_limit = 90, num_stages, n_total = NULL, n_per_stage,
all_efficacy_boundaries = NULL, H01_efficacy_boundaries = NULL,
H02_efficacy_boundaries = NULL, H0C_efficacy_boundaries = NULL,
H01_futility_boundaries = NULL, H02_futility_boundaries = NULL,
H0C_futility_boundaries = NULL, delta_futility = NULL,
intercepts_futility = NULL, H01_futility_boundary_const = NULL,
H02_futility_boundary_const = NULL, H0C_futility_boundary_const = NULL,
enrollment_rate_combined, delay, ...)
simTrial_Maurer_Bretz_2013(p1, r1, r2, mean_s1_trt, mean_s1_con, mean_s2_trt,
mean_s2_con, var_s1_trt, var_s1_con, var_s2_trt, var_s2_con, iter, time_limit,
num_stages, n_total = NULL, n_per_stage, all_efficacy_boundaries = NULL,
H01_futility_boundaries, H02_futility_boundaries, H0C_futility_boundaries,
delta_futility = NULL, intercepts_futility = NULL,
H01_futility_boundary_const = NULL, H02_futility_boundary_const = NULL,
H0C_futility_boundary_const = NULL, enrollment_rate_combined, delay, ...)
|
p1 |
Proportion of population in subpopulation 1. |
r1 |
probability of being randomized to treatment in subpopulation 1 |
r2 |
probability of being randomized to treatment in subpopulation 2 |
mean_s1_trt |
mean of the outcome under treatment in subpopluation 1. |
mean_s1_con |
mean of the outcome under control in subpopluation 1. |
mean_s2_trt |
mean of the outcome under treatment in subpopluation 2. |
mean_s2_con |
mean of the outcome under control in subpopluation 2. |
var_s1_trt |
variance of the outcome under treatment in subpopluation 1. |
var_s1_con |
variance of the outcome under control in subpopluation 1. |
var_s2_trt |
variance of the outcome under treatment in subpopluation 2. |
var_s2_con |
variance of the outcome under control in subpopluation 2. |
iter |
The number of simulated trials used to estimate the power, expected sample size, and expected trial duration. |
time_limit |
time limit for calculations. |
num_stages |
Total number of stages used in each design (K). The maximum allowable number of stages is 20. |
n_total |
the total, maximum number of patients to recruit by the end of the study. If entered, n_per_stage will be scaled to have this sum. |
n_per_stage |
a vector with length equal to |
all_efficacy_boundaries |
a list of efficacy boundaries matching the output of |
H01_efficacy_boundaries |
rather than setting |
H02_efficacy_boundaries |
see |
H0C_efficacy_boundaries |
see |
H01_futility_boundaries |
a vector of futility boundaries for the hypothesis H01. |
H02_futility_boundaries |
a vector of futility boundaries for the hypothesis H02. |
H0C_futility_boundaries |
Not currently used in the algorithm, but may be added in the future. |
delta_futility |
rather than setting the specific futility boundaries, parametric boundaries can be calculated. See |
intercepts_futility |
for use in |
H01_futility_boundary_const |
for use in |
H02_futility_boundary_const |
for use in |
H0C_futility_boundary_const |
for use in |
enrollment_rate_combined |
The assumed
enrollment rate per year for the combined population. This impacts the
expected duration of each trial design. Active enrollments from
the two subpopulations are assumed to be independent. The enrollment rates
for subpopulations 1 and 2 are assumed proportional, based on |
delay |
delay time from participant enrollment to observation of his/her outcome (in years) |
... |
needed so that function ignores unused arguments when called by |
For simTrial
, first, cumulative Z-statistics are constructed for each stage and population.
Next, the enrollment modification rule and multiple testing procedure are applied
at each stage, which determines when accrual is stopped for each subpopulation
and when (if at all) each population's null hypothesis is rejected.
If efficacy boundaries have not yet been computed, the user should consider using buildTrial
or buildTrial_Maurer_Bretz_2013
, which automatically complete this precursor step.
Maurer, W. and Bretz, F. (2013). Multiple testing in group sequential trials using graphical approaches. Statistics in Biopharmaceutical Research.
Rosenblum, M., Qian, T., Du, Y., and Qiu, H., Fisher, A. (2016). Multiple Testing Procedures for Adaptive Enrichment Designs: Combining Group Sequential and Reallocation Approaches. Biostatistics. 17(4), 650-662. https://goo.gl/c8GlcH
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.