# Not run: due to timing policy of CRAN for examples
# may run ten seconds or more
# using all the defaults:
# partial replicate design, target power=80\%,
# true assumed ratio = 0.90, 1E+6 simulated studies
# EMA regulatory settings (ABE limits, PE constraint 0.8 - 1.25)
sampleN.scABEL.ad(CV = 0.3)
# should result in sample size n = 60, power = 0.8022
# Note: Without adjustment by sampleN.scABEL(): n = 54, power = 0.8159
# Easier to show the details:
sampleN.scABEL.ad(CV = 0.3, details = TRUE)
#
# same with ANVISA settings, CVswitch = 40\%
sampleN.scABEL.ad(CV = 0.3, regulator = "anvisa")
# should result in n = 60, power = 0.8101; no adjustment necessary
#
# full replicate design, target power = 90\%, pre-specified alpha 0.025
sampleN.scABEL.ad(CV = 0.3, targetpower = 0.8, design = "2x2x4", alpha.pre = 0.025)
# should result in n = 44, power = 0.8040; pre-specified alpha justified
Run the code above in your browser using DataLab