sum_posthoc: Summarize Variables with Post-hoc Tests: Mutiple comparisons
Description
Produces a summary table of numeric or categorical variables grouped by a factor,
optionally performing global tests (ANOVA or Kruskal-Wallis) and post-hoc comparisons
(Tukey or Dunn test). Numeric variables can be summarized using mean (SD) or median (IQR).
Returns a flextable suitable for reporting.