Learn R Programming

statwitness (version 0.1.0)

statwitness_repeated: Audit a Repeated-Measures ANOVA

Description

Fits a repeated-measures ANOVA using afex::aov_ez() and checks design integrity, sphericity handling, row-order and participant-label invariance, outcome transformations, residual screening, and feasible participant-deletion influence checks.

Usage

statwitness_repeated(
  data,
  outcome,
  id,
  within,
  between = NULL,
  focus = NULL,
  type = 3,
  correction = "GG",
  tolerance = 1e-07,
  seed = 20260712,
  audit_level = c("standard", "core", "thorough")
)

Value

An object of class statwitness_audit.

Arguments

data

A long-format data frame.

outcome

Name of the numeric outcome column.

id

Name of the participant identifier column.

within

Character vector of within-subject factor names.

between

Optional between-subject factor names.

focus

Optional omnibus effect name.

type

Sums-of-squares type passed to afex::aov_ez().

correction

Sphericity correction, usually "GG".

tolerance

Relative numerical tolerance.

seed

Seed for row-order testing.

audit_level

Audit breadth: "core", "standard", or "thorough".