sampleN.RSABE(alpha = 0.05, targetpower = 0.8, theta0, theta1, theta2, CV,
design = c("2x3x3", "2x2x4", "2x2x3"), regulator = c("FDA", "EMA"),
nsims = 1e+05, nstart, imax=100,
print = TRUE, details = TRUE, setseed=TRUE)
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="2x3x3"
design="FDA"
.
Also the scaled ABE criterion is usually calculated with the FDA constant
r_const=log(1.25)/0.25 you can override this behavior to use the EMA setting
r_const=TRUE
(default) the function prints its results.
If FALSE
only the result data.frame will be returned.TRUE
, the default, the steps during sample size search are shown.set.seed(123456)
is issued if setseed=TRUE
, the default.power.RSABE
, power.scABEL
# using all the defaults:
# design=2x3x3 (partial replicate design), theta0=0.90,
# ABE limits, PE constraint 0.8 - 1.25
# targetpower=80\%, alpha=0.05, 1E5 sims
sampleN.RSABE(CV=0.3)
# results in a sample size n=45, power=0.80344
Run the code above in your browser using DataLab