power.tsd.p {Power2Stage} | R Documentation |
Power calculation of adaptive 2-stage BE studies in 2-group parallel designs
Description
This functions calculate the ‘empirical’ power of 2-stage BE studies
with 2 parallel groups according to Fuglsang 2014 via simulations. The Potvin decision
schemes are modified to include a futility criterion Nmax, a minimum number of
subjects to be included in stage 2 and to allow the sample size estimation
step to be done with point estimate and variabilities from
stage 1 (fully adaptive).
Function power.tsd.pAF()
performes exactly as described in
Fuglsang’s paper, namely the power monitoring steps and the sample
size estimation are based always on the pooled t-test.
Function power.tsd.p()
with argument test="welch"
on the
other hand uses the genuine power of Welch’s test. Moreover it
accepts unequal treatment groups in stage 1.
Usage
power.tsd.p(method = c("B", "C"), alpha0 = 0.05, alpha = c(0.0294, 0.0294),
n1, GMR, CV, targetpower = 0.8, pmethod = c("nct", "exact", "shifted"),
usePE = FALSE, Nmax = Inf, min.n2=0, test = c("welch", "t-test", "anova"),
theta0, theta1, theta2, npct = c(0.05, 0.5, 0.95), nsims,
setseed = TRUE, details = FALSE)
power.tsd.pAF(method = c("B", "C"), alpha0 = 0.05, alpha = c(0.0294, 0.0294),
n1, GMR, CV, targetpower = 0.8, pmethod = c("shifted", "nct", "exact"),
usePE = FALSE, Nmax = Inf, test = c("welch", "t-test", "anova"),
theta0, theta1, theta2, npct = c(0.05, 0.5, 0.95), nsims,
setseed = TRUE, details = FALSE)
Arguments
method |
Decision schemes according to Potvin et.al. (defaults to |
alpha0 |
Alpha value for the first step(s) in Potvin |
alpha |
Vector (two elements) of the nominal alphas for the two stages. |
n1 |
Sample size of stage 1. |
GMR |
Ratio T/R to be used in decision scheme (power calculations in stage 1 and sample size estimation for stage 2). |
CV |
Coefficient of variation of the total variability
(use e.g., 0.3 for 30%) |
targetpower |
Power threshold in the power monitoring steps and power to achieve in the sample size estimation step. |
pmethod |
Power calculation method, also to be used in the sample size estimation for
stage 2. |
usePE |
If |
Nmax |
Futility criterion. If set to a finite value, all studies simulated in which a
sample size |
min.n2 |
Minimum sample size of stage 2. |
test |
Test on which the CI calculations are based on. |
theta0 |
Assumed ratio of geometric means (T/R) for simulations. If missing,
defaults to |
theta1 |
Lower bioequivalence limit. Defaults to 0.8. |
theta2 |
Upper bioequivalence limit. Defaults to 1.25. |
npct |
Percentiles to be used for the presentation of the distribution of
|
nsims |
Number of studies to simulate. |
setseed |
Simulations are dependent on the starting point of the (pseudo) random number
generator. To avoid differences in power for different runs a
|
details |
If set to |
Details
The calculations follow in principle the simulations as described by Fuglsang.
The underlying subject data are assumed to be evaluated after log-transformation.
But instead of simulating subject data the statistics (mean and variance of Test
and Reference of stage 1 and
stage 2) are simulated via their associated
distributions (normal and χ2).
Value
Returns an object of class "pwrtsd"
with all the input arguments and results
as components.
The class "pwrtsd"
has an S3 print method.
The results are in the components:
pBE |
Fraction of studies found BE. |
pBE_s1 |
Fraction of studies found BE in stage 1. |
pct_s2 |
Percentage of studies continuing to stage 2. |
nmean |
Mean of n(total). |
nrange |
Range (min, max) of n(total). |
nperc |
Percentiles of the distribution of n(total). |
ntable |
Object of class |
Author(s)
D. Labes
References
Fuglsang A. Sequential Bioequivalence Approaches for Parallel Design.
AAPS J. 2014; 16(3):373–8. doi: 10.1208/s12248-014-9571-1
Potvin D, DiLiberti CE, Hauck WW, Parr AF, Schuirmann DJ, Smith RA. Sequential design approaches for bioequivalence studies with crossover designs.
Pharm Stat. 2008; 7(4):245–62. doi: 10.1002/pst.294
See Also
power.2stage
for analogous calculations for the 2×2 crossover.
Examples
# using all the defaults
power.tsd.p(n1=48, CV=0.25)