# Method comparison

`relate_method_comparison` · Runs: Held: built, not on the server yet · Level: Checked against a reference: R 4.4.3

Compares two measurement methods on the same samples, giving the bias and limits of agreement.

**Why it is held.** A specific fault has been found in this tool. The next sentence says which inputs it affects and whether it can return a wrong number. It returns some numbers without the unit or the limit needed to read them, and this is being corrected (SCI-832).

From server 1.0.0 this tool is called stats\_method\_comparison. Until then it answers as relate\_method\_comparison.

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)

[Open in Drybench Assay](https://www.drybench.com/assay/app)

```cite
Method comparison (relate_method_comparison), Drybench MCP server 1.0.0; deming-regression@1.0.0 (Checked against a reference); bland-altman@1.0.0 (Checked against a reference); https://www.drybench.com/mcp/tools/relate-method-comparison
```

## What it is

Required: scale (raw, percent, log); axis (mean, a); unit (unspecified, replicates, rows, serial, technical). Compares two measurement methods on paired complete cases: Deming regression with jackknife intervals, and Bland-Altman bias and limits of agreement. sameUnits true is required for quantitative agreement; inference opens only for row or replicate 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**

- `methodA` (required): Method A reading per sample (null for blank).
- `methodB` (required): Method B reading per sample in matching order (null for blank).
- `scale` (required): Bland-Altman difference scale: 'raw', 'percent', or 'log'.
- `axis` (required): Bland-Altman X axis: 'mean' ((A + B)/2) or 'a' (Method A).
- `unit` (required): What one point is (required; never inferred): 'replicates' (each replicate an independent unit), 'rows' (each row an independent unit, replicates technical: row means are used), 'serial' (serial reads of one unit), 'technical', or 'unspecified'. Inference needs 'replicates' or 'rows'.
- `nameA`: Optional name of method A.

and 5 more, listed below

No request is shown while this tool is held.

**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

11 inputs

- `methodA` (required): Method A reading per sample (null for blank).
- `methodB` (required): Method B reading per sample in matching order (null for blank).
- `scale` (required): Bland-Altman difference scale: 'raw', 'percent', or 'log'.
- `axis` (required): Bland-Altman X axis: 'mean' ((A + B)/2) or 'a' (Method A).
- `unit` (required): What one point is (required; never inferred): 'replicates' (each replicate an independent unit), 'rows' (each row an independent unit, replicates technical: row means are used), 'serial' (serial reads of one unit), 'technical', or 'unspecified'. Inference needs 'replicates' or 'rows'.
- `nameA`: Optional name of method A.
- `nameB`: Optional name of method B.
- `sameUnits`: True if both methods measure in the identical unit (default false).
- `lambda`: Positive error-variance ratio var(B)/var(A); omit for assumed 1.
- `decisionLevels`: Up to three medical decision values in Method A unit.
- `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.

### [Deming regression with jackknife intervals](https://www.drybench.com/methods/m/deming-regression/1.0.0)

`deming-regression@1.0.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for deming-regression\@1.0.0.

### [Bland–Altman bias and 95% limits of agreement](https://www.drybench.com/methods/m/bland-altman/1.0.0)

`bland-altman@1.0.0`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for bland-altman\@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:** Deming regression with jackknife intervals: R 4.4.3 (the Deming eigen route and the delete-one jackknife) on the 24 method-comparison cases of the 0.11.0 fixture: slope and intercept within 1e-10 (hand cases within 1e-12), the jackknife SE and bounds, decision levels included, within 1e-9, withheld states exact; SciPy 1.13.1 ODR and a NumPy closed form agree on the slope of all 20 Deming fits, 40 comparisons (2026-10-13). Bland–Altman bias and 95% limits of agreement: R 4.4.3 (mean, sd, qt and qnorm; lm for the proportional line; shapiro.test) on the 24 method-comparison cases of the 0.11.0 fixture: the bias, the SD of the differences, the limits of agreement, their intervals and the proportional slope within 1e-9, withheld states exact (2026-10-13). No SciPy cross-check.

**Cases:** Deming regression with jackknife intervals: No case set is linked to this version. Bland–Altman bias and 95% limits of agreement: No case set is linked to this version.

**Hostile inputs:** Sent 97 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:** Deming regression with jackknife intervals: Not recorded. Its absence does not mean everything was checked. Bland–Altman bias and 95% limits of agreement: Not recorded. Its absence does not mean everything was checked.

**Open:** A specific fault has been found in this tool. The next sentence says which inputs it affects and whether it can return a wrong number. It returns some numbers without the unit or the limit needed to read them, and this is being corrected (SCI-832).

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.

### Changes to its methods

0 changes

No change is logged for these method versions.
