# NOT RUN {
# The minimum number of reference positive cases required to demonstrate
# the true sensitivity is >0.7, assuming that the true value is 0.824, with
# 90% power is
binom_sample_size(alpha = 0.05, power = 0.9, p0 = 0.7, p1 = 0.824)
# With a sample size of n = 104, if the true prevalence is 0.2, we would
# require a sample size of at least n = 520 randomly sampled subjects to
# have adequate power to demonstrate the sensitivity of the new test.
# The minimum number of reference negative cases required to demonstrate
# the true specificity is >0.9, assuming that the true value is 0.963, with
# 90% power is
binom_sample_size(alpha = 0.05, power = 0.9, p0 = 0.9, p1 = 0.963)
# The proposed total sample size of n = 520 would be sufficient to
# demonstrate both endpoint goals are met.
# }
Run the code above in your browser using DataLab