| .compute_assurance | R Documentation |
Compute Mean Assurance for a Given Metric (Multi-Effect Compatible) Summarises simulation results and computes proportion passing for decision rule metric.
.compute_assurance(
df,
metric,
prob_threshold,
rope_rule = c(">="),
direction_p = 0.5,
effect_cols = NULL
)
df |
Data frame containing simulation results with columns n, effect cols, ok, and metric columns. |
metric |
One of "direction", "threshold", "rope". |
prob_threshold |
Numeric, threshold for "threshold" and "rope" metrics. |
rope_rule |
Reserved for future use. |
direction_p |
Numeric cutoff for "direction" metric (default 0.5). |
effect_cols |
Optional character vector of effect columns to group by. If NULL, auto-detects "true_effect" or others. |
Tibble grouped by n and effects with assurance column.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.