Skip to contents

Uses IDS, M7 (strong/weak), QS on SA, and QS on ORIGINAL (QSori) to form a simple majority-style decision. Thresholds mirror those used elsewhere.

Usage

sa_existence_call(
  tbl,
  majority = 0.6,
  thr = list(qs = 0.1, m7_strong = 0.9, m7_weak = 1.05, borderline_min_share = 0.4,
    use_qsori = TRUE)
)

Arguments

tbl

Candidate table (e.g., res$table).

majority

Required share for a positive overall call (default 0.6).

thr

List of thresholds: qs (0.10), m7_strong (0.90), m7_weak (1.05), borderline_min_share (0.4), use_qsori (TRUE).

Value

A tibble with call_overall and shares per test family.

Examples

tbl <- tibble::tibble(
  QS_p = c(0.04, 0.20, 0.08),
  M7 = c(0.82, 1.10, 0.95),
  IDS = c("yes", "no", "yes"),
  QSori_p = c(0.03, 0.15, 0.07)
)
sa_existence_call(tbl)
#> # A tibble: 1 × 6
#>   call_overall share_ids share_qs share_m7_strong share_m7_weak share_qsori
#>   <chr>            <dbl>    <dbl>           <dbl>         <dbl>       <dbl>
#> 1 ADJUST           0.667    0.667           0.333         0.667       0.667