power.RSABE(alpha = 0.05, theta1, theta2, theta0, CV, n,
design = c("2x3x3", "2x2x4", "2x2x3"), regulator = c("FDA", "EMA"),
nsims = 1e+05, details = FALSE, 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"
.regulator="FDA"
.
Also the linearized 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 nsims=1e+06
is recommended.TRUE
the computational time is shown as well as the components
for the BE decision.
p(BE-sABEc) is the probability that the 95% CI of the ABE criterion is setseed=TRUE
, the default.details=FALSE
.
Returns a named vector if argument details=TRUE
.
p(BE) is the power, p(BE-sABEc) is the power of the scaled ABE criterion alone
and p(BE-pe) is the power of the criterion 'point estimat within acceptance
range' alone.
p(BE-ABE) is the power of the conventional ABE test given for comparative purposes.sampleN.RSABE
, power.scABEL
# using all the defaults:
# design="2x3x3" -> partial replicate
# ABE limits, PE constraint 0.8-1.25
# true ratio =0.95, 1E+5 simulations
power.RSABE(CV=0.4, n=24)
# should give
# [1] 0.80864
#
# to explore the simulation error due to the state of the
# random number generator
power.RSABE(CV=0.4, n=24, setseed=FALSE)
# will give something like
# [1] 0.8081
Run the code above in your browser using DataLab