Skip to contents

Evaluates whether enough evidence exists to stop early based on confidence interval for consistency proportion.

Usage

early_stop_decision(
  n_success,
  n_total,
  threshold,
  conf.level = 0.95,
  min_samples = 20
)

Arguments

n_success

Integer. Number of splits meeting consistency.

n_total

Integer. Total number of valid splits.

threshold

Numeric. Target consistency threshold.

conf.level

Numeric. Confidence level for decision (default 0.95).

min_samples

Integer. Minimum samples before allowing early stop.

Value

Character. One of "continue", "pass", or "fail".