Usage
sampleN.scABEL(alpha = 0.05, targetpower = 0.8, theta0, theta1, theta2, CV,
design = c("2x3x3", "2x2x4", "2x2x3"), regulator = c("EMA", "FDA"),
nsims = 1e+05, nstart, print = TRUE, details = TRUE, setseed = TRUE)
Arguments
alpha
Type I error probability. Per convention mostly set to 0.05.
targetpower
Power to achieve at least. Must be >0 and
theta0
'True' or assumed bioequivalence ratio.
Defaults to 0.95 if given explicitly.
theta1
Conventional lower ABE limit to be applied in the mixed procedure if
CVsWR
theta2
Conventional upper ABE limit to be applied in the mixed procedure if
CVsWR
CV
Coefficient(s) of variation as ratio.
If length(CV) = 1
the same CV is assumed for Test and Reference.
If length(CV) = 2
the CV for Test must be given in CV[1] and for
Reference in CV[2].
design
Design of the study to be planned.
2x3x3 is the partial replicate design (TRR|RTR|RRT).
2x2x3 is the 3-period replicate design (TRT|RTR).
2x2x4 is the full replicate design with 2 sequences and 4 periods.
Defaults to design="2x3x3"
regulator
Regulatory body settings for the widening of the BE acceptance limits.
Defaults to design="EMA"
.
nsims
Number of simulations to be performed to obtain the (empirical) power.
The default value 100 000 = 1e+5 is usually sufficient. Consider to rise
this value if theta0<=0.85 or="">=1.25. But see the warning section.=0.85>
nstart
Set this to a start for the sample size search if a previous run failed.
After reworking the start n in version 1.1-05 seldom needed.
print
If TRUE (default) the function prints its results.
details
If set to TRUE
, the default, the steps during sample size search are shown.
setseed
Simulations are dependent on the starting point of the (pseudo) random number
generator. To avoid differences in power for different runs a set.seed(123456)
is issued if setseed=TRUE
, the default.