# NOT RUN {
# for reproducibility
set.seed(123)
library(statsExpressions)
# ------------------------ between-subjects -----------------------------
expr_anova_robust(
data = ggplot2::midwest,
x = state,
y = percbelowpoverty
)
# ------------------------ within-subjects -----------------------------
expr_anova_robust(
data = iris_long,
x = condition,
y = value,
paired = TRUE,
k = 3
)
# }
Run the code above in your browser using DataLab