# using all the defaults:
# partial replicate design, targetpower=80\%,
# true assumed ratio = 0.95, 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=27, power=0.8257
#
# same with ANVISA settings, CVswitch=40%
sampleN.scABEL(CV=0.3, regulator="anvisa")
# results in n=30, power=0.8220
# 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