Skip to contents

One-Way ANOVA with Post-Hoc Tukey and Plain-English Interpretation

Usage

anova_interpret(formula, data, conf.level = 0.95, context = NULL)

Arguments

formula

A formula of the form outcome ~ group

data

A data frame containing the variables

conf.level

Confidence level. Default 0.95

context

Optional description of the study design or sampling method, echoed back in the printed report. Default NULL.

Value

An object of class statease_anova containing ANOVA results, effect size, and post-hoc comparisons. Use print() to display the formatted report.

Examples

df <- data.frame(
  score = c(23,45,12,67,34,89,56,43,78,90,11,34),
  group = rep(c("A","B","C"), each = 4)
)
result <- anova_interpret(score ~ group, data = df)
#> Warning: One or more groups have small sample sizes (n < 10). Interpret with caution.
print(result)
#> 
#> -- statease ANOVA Report -----------------------------------------
#>   Outcome      : score
#>   Group        : group  (3 levels)
#> -----------------------------------------------------------------
#>   Group Means:
#>     A            : Mean = 36.75  (n = 4)
#>     B            : Mean = 55.50  (n = 4)
#>     C            : Mean = 53.25  (n = 4)
#> -----------------------------------------------------------------
#>   F-statistic  : 0.494
#>   df           : 2, 9
#>   p-value      : 0.6260
#>   Eta squared  : 0.0988 (moderate effect)
#> -----------------------------------------------------------------
#>   Assumption Checks:
#>     Normality (Group: A)    : PASSED   (Shapiro-Wilk p = 0.798)
#>     Normality (Group: B)    : PASSED   (Shapiro-Wilk p = 0.522)
#>     Normality (Group: C)    : PASSED   (Shapiro-Wilk p = 0.546)
#>     Equal variances         : PASSED   (Bartlett's p = 0.715)
#> 
#>   NOTE: Assumption checks are diagnostic tools and may be
#>   influenced by sample size and other characteristics of the
#>   data. Passing a check does not prove that an assumption is
#>   satisfied, and a warning does not automatically invalidate
#>   the analysis. Interpret these results alongside your
#>   knowledge of the data.
#> -----------------------------------------------------------------
#>   Interpretation:
#>   The overall ANOVA result is not statistically significant (p = 0.6260 > alpha 0.05).
#>   Group differences explain 9.9% of variance
#>   (eta^2 = 0.0988, moderate effect).
#> 
#>   Post-hoc tests not run (overall result not significant).
#> -----------------------------------------------------------------
#>