Method comparison
relate_method_comparison
Compares two measurement methods on the same samples, giving the bias and limits of agreement.
- Runs
- Held: built, not on the server yet
- Level
- Checked against a reference: R 4.4.3
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.
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. It is the same calculation as Drybench Assay, 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 input, with its units11 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.
No equation is recorded for this version.
Kind of method: not recorded.
Worked example: not recorded for deming-regression@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.
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).
What this project's records still lack5 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 methods0 changes
No change is logged for these method versions.