One-way ANOVA + Tukey HSD post-hoc
Value
Named list with f_statistic, p_value, df_between, df_within, means, n_per_group, tukey_hsd, interpretation.
Examples
set.seed(2026)
n <- 30L
df <- data.frame(
y = c(rnorm(n, 0), rnorm(n, 0.5), rnorm(n, 1)),
g = rep(c("A", "B", "C"), each = n)
)
res <- mrm_anova_oneway(df, response_col = "y", group_col = "g")
res$f_statistic
#> [1] 9.3863
res$p_value
#> [1] 0.000203635
res$tukey_hsd
#> diff lwr upr p adj pair
#> 1 0.4245438 -0.18993981 1.039027 0.2314874923 B-A
#> 2 1.1066087 0.49212516 1.721092 0.0001335289 C-A
#> 3 0.6820650 0.06758141 1.296549 0.0258599378 C-B