wcs_power_best_binomial: Worst‐Case Scenario Power for the Best Binomial Group
Description
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.
Usage
wcs_power_best_binomial(dif, ngroups, npergroup)
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.
Arguments
dif
Numeric. Indifference zone specification (difference threshold).
ngroups
Integer. Number of groups to compare.
npergroup
Integer. Number of subjects per group.
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.