Skip to contents

Compute simple method-specific pilot-size activation thresholds for the Pilot-planning screen from Appendix E of the accompanying paper.

Usage

activation_threshold_bounded(
  alpha = 0.05,
  max_total_pilot = 10000L,
  min_arm_size = 2L
)

activation_threshold_bernoulli(alpha = 0.05)

Arguments

alpha

Target error level.

max_total_pilot

Largest total pilot size to search.

min_arm_size

Minimum pilot observations per arm; must be at least 2.

Value

Total pilot size threshold. activation_threshold_bounded() returns Inf if no even pilot size up to max_total_pilot clears the bounded-outcome activation condition. activation_threshold_bernoulli() returns 4; the exact Bernoulli screen activates at the minimal admissible pilot regardless of alpha, which is validated for interface consistency.

Examples

activation_threshold_bounded(alpha = 0.05, max_total_pilot = 200)
#> [1] 72
activation_threshold_bernoulli(alpha = 0.05)
#> [1] 4