Sphericity assumption is left to the user; this routine computes the
uncorrected F. Pair with ez::ezANOVA for GG/HF correction if
needed.
Usage
repeated_measures_anova(data, outcome, subject, within)
Arguments
- data
Long-format data frame.
- outcome, subject, within
Column names.
Value
An object of class "morie_test_result".
Examples
set.seed(1)
df <- data.frame(y = rnorm(30), id = rep(1:10, 3),
cond = rep(c("t1", "t2", "t3"), each = 10))
repeated_measures_anova(df, "y", "id", "cond")
#> Repeated-measures ANOVA
#> -----------------------
#> statistic = 0.397959
#> p-value = 0.677456
#> df = 2
#> effect = 0.0423452
#> n = 10