
Aggregate existence-of-seasonality decision (ADJUST / BORDERLINE / DO_NOT_ADJUST)
Source:R/sa-diagnostics.R
sa_existence_call.RdUses 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)
)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