Runs repeated-measures ANOVA per outcome using:
(a) ez::ezANOVA with Mauchly's test and sphericity corrections (GG/HF), and/or
(b) a multilevel model via nlme::lme (random intercept per subject),
assessing fixed effects via nested model comparisons.
Arguments
- data
A
data.framein long format (one row per measurement per subject).- idvar
Character string: subject identifier variable.
- withinvar
Character string: within-subject factor (time/condition).
- dvs
Character vector of continuous outcome names. If
NULL, numeric columns are auto-detected excludingidvar,withinvar, andbetweenvar.- betweenvar
(Optional) character string: between-subject factor.
- method
One of
"both"(default),"ez", or"lme".- correction
Sphericity correction for
ezANOVA:"GG"(default),"HF", or"none".- flextableformat
Logical;
TRUE(default) returns aflextable;FALSEreturns adata.frame.
