# using all the defaults:
# partial replicate design, targetpower=80\%,
# true assumed ratio = 0.90, 1E+5 simulated studies
# ABE limits, PE constraint 0.8 - 1.25
# EMA regulatory settings
sampleN.scABEL(CV=0.3)
# results in a sample size n=54, power=0.8159
#
# now with inofficial ANVISA settings, CVswitch=40\%
sampleN.scABEL(CV=0.3, regulator="anvisa")
# results in n=60, power=0.8101
# for the full replicate design, target power = 90\%
# true assumed ratio = 0.9, FDA regulatory settings
sampleN.scABEL(CV=0.4, targetpower=0.9, theta0=0.9, design="2x2x4", regulator="FDA")
# should result in a sample size n=30, power=0.9074
Run the code above in your browser using DataLab