wcs_power_best_binomial {ssutil}R Documentation

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)

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.

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.

See Also

power_best_binomial, optimize

Examples

wcs_power_best_binomial(dif = 0.1, ngroups = 3, npergroup = 50)


[Package ssutil version 1.0.0 Index]