Tukey HSD post-hoc test (all pairwise comparisons after one-way ANOVA)
Source:R/ops-timefreq.R
tukeyHSD.RdTukey's Honest Significant Difference test: all pairwise mean comparisons
following a one-way ANOVA (oneWayAnova), with p-values and
confidence intervals from the studentized-range distribution and single-step
control of the family-wise error rate. Reproduces base R
stats::TukeyHSD and scipy.stats.tukey_hsd (machine precision).
Arguments
- x
Either a named list of
k >= 2numeric group vectors, or the first group's numeric vector (with further groups passed through...– use a named list to label the comparisons).- ...
Additional numeric group vectors when
xis a single vector.- conf_level
Confidence level for the intervals (default 0.95).
Value
A data frame with one row per pair: comparison, diff (mean
difference), lwr/upr (CI) and p_adj (family-wise-adjusted p-value),
carrying k, df and n as attributes.