View source: R/ss_best_binomial.R
| wcs_power_best_binomial | R Documentation |
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.
wcs_power_best_binomial(dif, ngroups, npergroup)
dif |
Numeric. Indifference zone specification (difference threshold). |
ngroups |
Integer. Number of groups to compare. |
npergroup |
Integer. Number of subjects per group. |
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.
A named list with components:
Numeric. Probability in the best group that yields the minimum power.
Numeric. The minimum power achieved at p1.
power_best_binomial, optimize
wcs_power_best_binomial(dif = 0.1, ngroups = 3, npergroup = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.