
Worst‐Case Scenario Power for the Best Binomial Group
Source:R/ss_best_binomial.R
wcs_power_best_binomial.Rd
Searches for the probability in the best‐performing group that yields the lowest statistical power, given an indifference zone specification, a number of groups, and a number of subjects per group.
Value
A named list with components:
- p1
Numeric. Probability in the best group that yields the minimum power.
- minimum_power
Numeric. The minimum power achieved at
p1
.
Details
Defines an internal function fx
that wraps power_best_binomial
with the supplied parameters, then uses optimize
over the interval [0,1]
to find the probability p1
that minimizes the resulting power.