7 Other gsDesign() parameters
7.1 Setting Type I error and power
Type I error as input to gsDesign()
is always one-sided and is set through the parameter alpha
. Type II error (1-power) is set in the parameter beta
. A standard design modified to have Type I error of 0.05 and Type II error of 0.2 (80% power) rather than the default of 0.025 Type I and 0.1 Type II error is produced with the command
7.2 Number and timing of analyses
The number of analyses is set in gsDesign()
through the parameter k>1
, which has a default of 3. The default for timing of analyses is to have them equally-spaced, which is indicated by the default value of timing=1
. This will often not be feasible or desired due to logistical or other reasons. The parameter timing
can be input as a vector of length k
or k-1
where timing[1]
timing[2]
timing[k]
timing[k]
since it is always 1. The values in timing
set the proportion of statistical information available for the data analyzed at each interim analysis. The statistical information is generally proportional to the number of observations analyzed or, for survival analysis, the number of time-to-event endpoints that have been observed. The following compares upper bounds, number of observations at each analysis, and average number of observations at the analysis where a boundary is crossed for the default design (stored in x
) versus an alternative analyzing after 25%and 50% of observations (stored in xt
) for the CAPTURE example. You can see that the upper bounds are more stringent when analyses are done earlier in the trial.
x$upper$bound
#> [1] 3.010739 2.546531 1.999226
x$en
#> [1] 1146.391 1451.709
xt$upper$bound
#> [1] 3.155373 2.818347 1.983563
xt$en
#> [1] 1185.173 1547.649
Comparing the designs, we see that the average sample number is lower for the default design with evenly spaced analyses compared to the design analyzing after 25% and 50% of observations. This is true both under the null hypothesis (1146 versus 1185) and the alternate hypothesis (1452 versus 1548) in spite of a lower maximum sample size (1926 versus 1964) for the latter design. To understand this further we look first at the probability of crossing the lower bound at each analysis for each design below. The columns of the matrices printed correspond to the theta
values under the null and alternate hypotheses, respectively, while rows correspond to the analyses. Thus, the default design has probability of 41% of crossing the lower bound at the first interim analysis compared to 25% for the design with first analysis at 25% of observations. By examining these probabilities as well as corresponding upper boundary crossing probabilities (e.g., x$upper$prob
) we see that by moving analyses earlier without changing spending functions we have decreased the probability of crossing an interim boundary, which explains the smaller expected sample size for the default design which uses later interim analyses.
x$lower$prob
#> [,1] [,2]
#> [1,] 0.4056598 0.01483371
#> [2,] 0.4290045 0.02889212
#> [3,] 0.1420312 0.05627417
xt$lower$prob
#> [,1] [,2]
#> [1,] 0.2546094 0.01015363
#> [2,] 0.3839157 0.01674051
#> [3,] 0.3375615 0.07310586
7.3 Standardized treatment effect: delta
7.3.1 Normally distributed data
The “usual” formula for sample size for a fixed design is
This formula originates from testing the mean of a sample of normal random variables with variance 1. The null hypothesis is that the true mean
By fixing this probability as
Assume a set of patients is evaluated at baseline for a measure of interest, then treated with a therapy and subsequently measured for a change from baseline. Assume the within subject variance for the change from baseline is 1. Suppose gsDesign(delta = 0.1)
, yielding a planned maximum sample size of 1125.
7.3.2 Time to event data
Equation 7.1 and Equation 7.2 are used as approximations for many situations where test statistics are approximated well by the normal distribution as
We have used
Note that when
For equally sized treatment groups,
For the formulation from Section 2.1 we have
For the cancer trial example in Section 1.6, we assumed gsDesign(delta = -log(0.7) / 2)
.
We also apply this distribution theory to the non-inferiority trial for a new treatment for diabetes. We wish to rule out a hazard ratio of 1.3 for the experimental group compared to the control group under the assumption that the risk of cardiovascular events is equal in the two treatment groups. This implies that our null hypothesis is that