View source: R/subgroup_consistency_helpers.R
| early_stop_decision | R Documentation |
Evaluates whether enough evidence exists to stop early based on confidence interval for consistency proportion.
early_stop_decision(
n_success,
n_total,
threshold,
conf.level = 0.95,
min_samples = 20
)
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. |
Character. One of "continue", "pass", or "fail".
early_stop_decision(95, 100, threshold = 0.90)
early_stop_decision(60, 100, threshold = 0.90)
early_stop_decision(10, 15, threshold = 0.90) # below min_samples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.