interim.tsd.in {Power2Stage} | R Documentation |
Interim analysis of first stage data of 2-stage 2x2 crossover designs based on the Inverse Normal method
Description
Following the design scheme according to power.tsd.in
the function
performs the interim analysis of the first stage data.
Usage
interim.tsd.in(alpha, weight, max.comb.test = TRUE, targetpower = 0.8,
GMR1, n1, CV1, df1 = NULL, SEM1 = NULL, theta1, theta2,
GMR, usePE = FALSE, min.n2 = 4, max.n = Inf,
fCpower = targetpower, fCrit = "CI", fClower, fCupper, fCNmax,
ssr.conditional = c("error_power", "error", "no"),
pmethod = c("exact", "nct", "shifted"))
Arguments
alpha |
If one element is given, the overall one-sided significance level (not
the adjusted level for stage 1). In this
case the adjusted alpha levels will be calcualted internally. If two
elements are given, the argument refers to the two adjusted one-sided
alpha levels for stage 1 and
stage 2, respectively. |
weight |
Pre-defined weight(s) of stage 1, see
'Details' for more information. Note that using the notation from
Maurer et al, weight corresponds to information fraction, other literature
may refer to sqrt(weight) as being the weight. |
max.comb.test |
Logical; if |
targetpower |
Desired (overall) target power to declare BE at the end of the trial. |
GMR1 |
Observed ratio of geometric means (T/R) of stage 1 data (use e.g., 0.95 for 95%). |
n1 |
Sample size of stage 1. |
CV1 |
Observed coefficient of variation of the intra-subject variability of stage 1 (use e.g., 0.3 for 30%). |
df1 |
Optional; Error degrees of freedom of
stage 1 that can be specified in
addition to |
SEM1 |
Optional; Standard error of the difference of means of
stage 1 that can be specified in
addition to |
theta1 |
Lower bioequivalence limit. Defaults to 0.8. |
theta2 |
Upper bioequivalence limit. Defaults to 1.25. |
GMR |
Assumed ratio of geometric means (T/R) to be used in power calculation for stage 1 and sample size re-estimation for stage 2. |
usePE |
If |
min.n2 |
Minimum sample size of stage 2. Defaults to 4. |
max.n |
Maximum overall sample size stage 1 +
stage 2. |
fCpower |
Threshold for power monitoring step to decide on futility for cases where
BE has not been achieved after
stage 1: If BE has not been
achieved after stage 1 and the power for
stage 1 is greater than or equal to
|
fCrit |
Futility criterion to use: |
fClower |
Lower futility limit for the PE or CI of
stage 1. |
fCupper |
Upper futility limit for the PE or CI of
stage 1. |
fCNmax |
Futility criterion regarding maximum sample size. If the determined sample size
for stage 2 ( |
ssr.conditional |
Method for sample size re-estimation step: |
pmethod |
Power calculation method, also to be used in the sample size estimation for
stage 2. |
Details
The observed values of stage 1 (e.g. GMR1
, n1
, CV1
) may
be obtained based on the first stage data via the usual ANOVA approach.
The optional arguments df1
and SEM1
require a somewhat
advanced knowledge (provided in the raw output from for example the software
SAS, or may be obtained via emmeans::emmeans
).
However, it has the advantage that if there were missing data the exact
degrees of freedom and standard error of the difference can be used,
the former possibly being non-integer valued (e.g. if the
Kenward-Roger method was used).
The weight
argument always refers to the first weight of a pair of
weights. For example, in case of max.comb.test = FALSE
the standard
combination test requires two weights (w, 1-w) but only the first one, w,
is required as input argument here because the second weight is
automatically specified once the first is given. Similarly for
max.comb.test = TRUE
, w and w* need to be specified, which in turn
define the two pairs of weights (w, 1-w) and (w*, 1-w*).
If ssr.conditional = "error_power"
, the design scheme generally
calculates the estimated conditional target power of the second stage and
uses this value as desired target power in the sample size re-estimation process:
If fCpower
> targetpower
, then the conditional estimated
target power may be negative. This does not seem sensible. Therefore, for such
cases the desired target power for the sample size re-calculation will be set
to targetpower
, i.e. ssr.conditional
will be set to "error"
.
Also, if the futility criterion based on the power of stage 1 is met,
then the conditional estimated target power will be negative. Thus, no further
sample size calculation can be made. To acknowledge that this rule is nonbinding,
for the purpose of calculating n2 the argument ssr.conditional
is set
to "error"
.
Value
Returns an object of class "evaltsd"
with all the input arguments and results
as components. As part of the input arguments a component cval
is also
presented, containing the critical values for
stage 1 and 2 according to the
input based on alpha
, weight
and max.comb.test
.
The class "evaltsd"
has an S3 print method.
The results are in the components:
p11 |
Observed p-value for first hypothesis. |
p12 |
Observed p-value for second hypothesis. |
z1 |
z statistic value for first null hypothesis. |
z2 |
z statistic value for second null hypothesis. |
RCI |
Repeated confidence interval for stage 1. Corresponds to the usual CI with level alpha1. |
MEUE |
If the study stops, the median unbiased point estimate as estimate for the final adjusted
geometric mean ratio after stage 1 (note that the value is identical to |
futility |
Three dimensional vector with either 0 or 1. The first
component represents futility due to Power of first stage > |
CI90 |
90% Confidence interval for observed ratio of geometric means
from stage 1. If |
Power Stage 1 |
Calculated power of stage 1. |
stop_s1 |
Logical, indicating whether to stop after stage 1 (due to BE or due to futility). |
stop_fut |
Logical, indicating whether study is recommended to be stopped after stage 1 due to futility. |
stop_BE |
Logical, indicating whether BE could be concluded after stage 1 or not (regardless of any futility criterion). |
n2 |
Required (total) sample size for stage 2 (will be zero if BE has been shown after stage 1). |
alpha_ssr |
Only applicable if BE has not been shown after
stage 1. Contains
alpha values for the two hypotheses required for sample size re-calculation.
If |
GMR_ssr |
Only applicable if BE has not been shown after stage 1. Contains the geometric mean ratio used for sample size re-calculation (accounts for adaptive planning step). |
targetpower_ssr |
Only applicable if BE has not been shown after stage 1. Contains the target power used for the sample size re-calculation (see also 'Details'). |
Author(s)
B. Lang
References
König F, Wolfsegger M, Jaki T, Schütz H, Wassmer G.
Adaptive two-stage bioequivalence trials with early stopping and sample size re-estimation.
Vienna: 2014; 35th Annual Conference of the International Society for Clinical Biostatistics. Poster P1.2.88
doi: 10.13140/RG.2.1.5190.0967.
Patterson SD, Jones B. Bioequivalence and Statistics in Clinical Pharmacology.
Boca Raton: CRC Press; 2nd edition 2017.
Maurer W, Jones B, Chen Y. Controlling the type 1 error rate in two-stage
sequential designs when testing for average bioequivalence.
Stat Med. 2018; 37(10): 1587–1607. doi: 10.1002/sim.7614.
Wassmer G, Brannath W. Group Sequential and Confirmatory Adaptive Designs
in Clinical Trials.
Springer 2016. doi: 10.1007/978-3-319-32562-0.
See Also
Examples
# Example from Maurer et al.
interim.tsd.in(GMR = 0.95, max.n = 4000,
GMR1 = exp(0.0424), CV1 = 0.3682, n1 = 20)
# Example 2 from Potvin et al.
interim.tsd.in(GMR = 0.95, GMR1 = 1.0876, CV1 = 0.18213, n1 = 12,
fCrit = "No", ssr.conditional = "no")