{
  "name": "Repeated-measures ANOVA in R: defaults of three routes (aov, rstatix, afex)",
  "description": "Argument conventions and defaults for running a repeated-measures ANOVA in R with base aov(), rstatix::anova_test() and afex::aov_ez(), compiled from the official reference documentation of each function.",
  "page": "https://casrai.org/guides/rm-anova-in-r",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-15T12:16:24Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Route",
      "unit": "",
      "description": ""
    },
    {
      "name": "Subject ID argument",
      "unit": "",
      "description": ""
    },
    {
      "name": "Sphericity handling",
      "unit": "",
      "description": ""
    },
    {
      "name": "Default effect size",
      "unit": "",
      "description": ""
    },
    {
      "name": "Data requirement",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Route": "aov() with Error()",
      "Subject ID argument": "Error(id/time) term in the formula",
      "Sphericity handling": "No sphericity test in summary() output",
      "Default effect size": "None printed",
      "Data requirement": "Balanced design; single Error term defines error strata"
    },
    {
      "Route": "rstatix::anova_test()",
      "Subject ID argument": "wid = id (unquoted column)",
      "Sphericity handling": "Mauchly test shown; get_anova_table correction auto applies GG when p",
      "Default effect size": "Generalized eta squared (ges)",
      "Data requirement": "Long format; Type III sums of squares for repeated measures"
    },
    {
      "Route": "afex::aov_ez()",
      "Subject ID argument": "id = \"id\" (quoted string)",
      "Sphericity handling": "Greenhouse-Geisser by default; Huynh-Feldt or none selectable",
      "Default effect size": "Chosen via anova_table es",
      "Data requirement": "Long format; several observations per cell are averaged with a warning unless fun_aggregate = mean"
    }
  ],
  "sources": [
    {
      "title": "rstatix reference: anova_test",
      "url": "https://rpkgs.datanovia.com/rstatix/reference/anova_test.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "R documentation: stats::aov",
      "url": "https://stat.ethz.ch/R-manual/R-devel/library/stats/html/aov.html",
      "accessed": "2026-11-15"
    },
    {
      "title": "afex reference manual (CRAN)",
      "url": "https://cran.r-project.org/web/packages/afex/refman/afex.html",
      "accessed": "2026-11-15"
    }
  ]
}