# Repeated measures

`stats_repeated_measures` · Runs: Built, not hosted · Level: Checked against a reference: R 4.4.3

Analyses subjects measured at every level of one factor by repeated-measures ANOVA or the Friedman test.

Research and education software; not medical advice, and not for diagnosis or treatment decisions. It computes from the inputs it receives. It does not check the person's data, design or sample.

[Catalogue](https://www.drybench.com/mcp/catalogue) / [Statistics](https://www.drybench.com/mcp/catalogue/statistics)

[Ask your assistant](https://www.drybench.com/mcp/connect) · [Open in Drybench Assay](https://www.drybench.com/assay/app)

```cite
Repeated measures (stats_repeated_measures), Drybench MCP server 1.0.0; repeated-measures@1.0.1 (Checked against a reference); rank-groups@1.0.0 (Checked against a reference); https://www.drybench.com/mcp/tools/stats-repeated-measures
```

## What it is

Required: unit (independent, technical, unspecified); test (anova, friedman). Analyses matched subjects measured at several levels: repeated-measures ANOVA (classic, or a REML random-intercept mixed model when subjects are incomplete) or the Friedman rank test with pairwise signed-rank tests. With test anova, model and correction are also required. Inference opens only for independent units.

Field: [Statistics](https://www.drybench.com/mcp/catalogue/statistics). It is the same calculation as [Drybench Assay](https://www.drybench.com/assay/app), called by an AI assistant through the server.

## What it does

**You give**

- `levels` (required): Level names (time points or conditions), 3 to 200 (2 names withheld cleanly).
- `subjects` (required): One entry per subject: measurement values ordered by levels (null marks missing value).
- `unit` (required): Experimental unit: 'independent' (independent subjects; opens inference), 'technical', or 'unspecified'.
- `test` (required): Analysis family: 'anova' or 'friedman'.
- `model`: Required for test 'anova': 'auto' (mixed model if incomplete) or 'classic' (complete subjects only).
- `correction`: Required for test 'anova': sphericity correction 'GG' or 'HF'.

and 1 more, listed below

No request is recorded for this tool.

**Limits**

- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
- No other limit is recorded for this tool.

Every reply also carries its app's limits line: "A C50 estimated here describes this assay under these conditions and is not a binding constant."

### Every input, with its units

7 inputs

- `levels` (required): Level names (time points or conditions), 3 to 200 (2 names withheld cleanly).
- `subjects` (required): One entry per subject: measurement values ordered by levels (null marks missing value).
- `unit` (required): Experimental unit: 'independent' (independent subjects; opens inference), 'technical', or 'unspecified'.
- `test` (required): Analysis family: 'anova' or 'friedman'.
- `model`: Required for test 'anova': 'auto' (mixed model if incomplete) or 'classic' (complete subjects only).
- `correction`: Required for test 'anova': sphericity correction 'GG' or 'HF'.
- `level`: Confidence coverage level for intervals (0.9, 0.95 default, or 0.99).

## The calculation

2 methods, each with its equations, constants and worked example.

### [Repeated measures (Greenhouse–Geisser, Huynh–Feldt) and the random-intercept mixed model](https://www.drybench.com/methods/m/repeated-measures/1.0.1)

`repeated-measures@1.0.1`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for repeated-measures\@1.0.1.

### [Kruskal–Wallis with Dunn's test; Friedman with pairwise signed-rank tests](https://www.drybench.com/methods/m/rank-groups/1.0.0)

`rank-groups@1.0.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for rank-groups\@1.0.0.

## Sources

No source is recorded for this tool's methods.

Read by AI-assisted sessions. No person has checked these readings.

## How it is checked

**Level:** Checked against a reference, the lowest of its 2 methods.

**Checked against:** Repeated measures (Greenhouse–Geisser, Huynh–Feldt) and the random-intercept mixed model: R 4.4.3 on 22 cases of the 0.11.0 fixture: the classic F within 1e-9 relative and p within 1e-8, Greenhouse–Geisser and Huynh–Feldt ε within 1e-9 (car 3.1-5); the random-intercept model's F and p within 1e-6 and its means, SEs and variances within 1e-5 (nlme 3.1-167, REML) (2026-10-13). R only; SciPy not run. Kruskal–Wallis with Dunn's test; Friedman with pairwise signed-rank tests: R 4.4.3 on 22 cases of the 0.11.0 fixture (kruskal.test, friedman.test, Dunn written from its definition and the pairwise signed-rank with Holm): statistics within 1e-9 relative, p within 1e-8 (2026-10-13). R only; SciPy not run.

**Cases:** Repeated measures (Greenhouse–Geisser, Huynh–Feldt) and the random-intercept mixed model: No case set is linked to this version. Kruskal–Wallis with Dunn's test; Friedman with pairwise signed-rank tests: No case set is linked to this version.

**Worked example:** Published worked example, run through the tool: Lane, Online Statistics Education, Within-Subjects ANOVA Table 2, the ADHD data's SS, df, MS, F and p.

**Hostile inputs:** Sent 193 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Same answer:** Called twice and with its arguments in another order, it gave the same result. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Not checked:** Repeated measures (Greenhouse–Geisser, Huynh–Feldt) and the random-intercept mixed model: Not recorded. Its absence does not mean everything was checked. Kruskal–Wallis with Dunn's test; Friedman with pairwise signed-rank tests: Not recorded. Its absence does not mean everything was checked.

No independent scientist has yet reviewed this.

### What this project's records still lack

5 things

- A case worked by hand from the source's equation for both methods.
- The equation for both methods.
- The constants with their sources for both methods.
- A case set linked to this version for both methods.
- A record of what was not checked for both methods.

### Cite a number from this tool

the cite line

Every reply carries a cite line naming the tool, the server version, each method with its version and level, and the receipt. Quote it with any number taken from the reply.

```cite
stats_repeated_measures, server 1.0.0; status invalid-input, nothing ran; no method record; receipt <input hash, 12 characters>/<output hash, 12 characters>; methods https://www.drybench.com/methods/assay; page https://www.drybench.com/methods/tools/stats-repeated-measures. There is no result to quote; this line identifies the call and its receipt.
```

### Changes to its methods

1 change

- [21 November 2026, repeated-measures\@1.0.1](https://www.drybench.com/methods/corrections#2026-11-21-repeated-measures101-1): In 1.0.1: Data whose largest absolute value lies within 2^±100 are computed as given, as in 1.0.0; beyond that range each analysis runs on the data multiplied by the one power of two that brings the largest value just inside it, and every value it reports is multiplied back (a sum of squares, σ² or variance by the square); each pair's differences are scaled in the same way by their own largest value. F, ε, t and p are unchanged by a positive scale. A block whose sums of squares or variances cannot be reported in the data's unit is withheld as BEYOND\_DOUBLE\_RANGE: at 1e±160 and 1e±200 the classic table and the mixed model are withheld so (their sums of squares are about 1e±320 and 1e±400), and the paired t tests give the unscaled t and p. Beyond 2^±100 the mixed model's likelihood search, which takes a logarithm, can end a rounding away from the unscaled search: in the finding's range cases at most 7.4e-7 relative, in the mixed model's p (2.0e-7 in its F), and in the seeded spanning scan up to 4.2e-6 relative in a far-tail p, inside its oracle tolerance of 1e-6 for F. In a seeded scan of 1,000 calls of the tool at magnitudes from 1e-300 to 1e300, every call whose data share one magnitude and whose reply changed now gives the reply 1.0.0 gives on the same data brought near 1 by a power of two, or withholds as BEYOND\_DOUBLE\_RANGE, but for those mixed-model differences; calls mixing magnitudes more than 2^500 apart have no such reference and were not judged.
