Bland-Altman Agreement Plot Calculator

Enter paired readings from two methods and get the mean difference, the 95% limits of agreement with their confidence intervals, a test for proportional bias, a check against your acceptable difference and the plot.

Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo

…

Come si usa

  1. 1
    Enter the pairs

    Type readings in the table, paste two or three columns, or import a CSV file.

  2. 2
    Name the methods

    Give both methods a name and a unit, and choose the order of subtraction.

  3. 3
    Choose settings

    Pick absolute, percentage or log-ratio differences, coverage and confidence level.

  4. 4
    Set the acceptable difference

    Enter the largest difference that would not matter in practice.

  5. 5
    Read the plot

    Check the bias, the limits, points outside them and any trend line.

  6. 6
    Export

    Download results and differences as CSV, the plot as SVG or PNG, or print the report.

Informazioni su questo strumento

When a new instrument, a cheaper test or a second observer is meant to replace an existing one, the question is not whether the two sets of readings are correlated but whether they agree closely enough to be used interchangeably. Martin Bland and Douglas Altman showed in 1986 that correlation answers the wrong question: two methods can correlate at 0.94 and still disagree by 80 units for some subjects. Their alternative is to plot, for every subject, the difference between the two readings against their mean, and to summarise the differences with a bias and limits of agreement. This calculator does that in your browser. Type or paste the pairs, name the two methods and give a unit. The tool reports the bias (mean difference) with its t-based confidence interval and a test of whether it differs from zero, and the limits of agreement, bias ± 1.96 standard deviations, each with its own confidence interval. You can pick the 1999 standard error formula or the simpler 1986 form, change the coverage to 90% or 99%, and switch to percentage or log-ratio differences when the spread grows with the size of the measurement. A regression of the difference on the mean checks for proportional bias, and you can enter the largest difference that would be acceptable in practice to see whether the limits, and their outer confidence bounds, stay inside it.

What the output means

The bias tells you how far, on average, one method reads above the other; if its confidence interval excludes zero, the shift is systematic and may be correctable. The limits of agreement are the range within which about 95% of differences between the methods are expected to fall for a new subject. Whether that range is acceptable is a practical or clinical decision, which is why the tool asks for an acceptable difference rather than giving a verdict on its own. The confidence intervals of the limits widen sharply with small samples, so a study of 17 subjects can only roughly locate them.

Worked example

The first sample is the peak expiratory flow data from the 1986 Lancet paper: 17 subjects measured with a Wright peak flow meter and a mini Wright meter, in litres per minute. The differences (Wright − mini) have mean −2.12 and standard deviation 38.77. With 1.96 SD the limits of agreement are −78.1 to 73.9 l/min, and 16 of the 17 pairs fall inside. The 95% confidence interval for the bias is −22.0 to 17.8, so there is no clear systematic difference (p = 0.82). Using the 1999 standard error, the lower limit could lie anywhere from −112.9 to −43.3 and the upper limit from 39.1 to 108.6. With the paper's own choice of 2 SD the limits become −79.7 to 75.4, matching the published −79.7 to 75.5 apart from rounding. The regression slope of difference on mean is 0.029 (p = 0.75), so the disagreement does not depend on the level of flow, and Pearson's r is 0.943 despite the wide limits.

Limits

The method assumes the differences are roughly normal and do not trend with the mean; the tool warns about skew and proportional bias but cannot fix a poorly designed study. It treats each pair as an independent subject, so it does not handle repeated measurements per subject. The blood pressure and glucose samples are made-up illustrations of method comparison, not medical advice and not a validation of any device.

Esempio svolto

Peak flow, Wright vs mini Wright (n = 17): bias −2.12 l/min, 95% limits of agreement −78.1 to 73.9 l/min.

In breve

Domande frequenti

Why not just use the correlation coefficient?

Correlation measures whether two methods rise and fall together, not whether they give the same value. A method that always reads 20 units high correlates perfectly with the true value. The Bland-Altman limits show the actual size of the disagreement.

Which way round should I take the difference?

Usually new method minus reference, so a positive bias means the new method reads high. The order box swaps the sign; the limits and their widths do not change.

When should I use percentage or log-ratio differences?

When the scatter of differences grows with the size of the measurement, a funnel shape on the plot or a significant proportional bias. Percentage differences divide by the mean of each pair; log ratios give limits you can read as "between 0.92 and 1.08 times".

What is the acceptable difference box for?

Agreement is judged against a limit set in advance from practical or clinical needs. Enter it and the tool says whether the limits of agreement, and the outer ends of their confidence intervals, fall inside plus or minus that value.

Which confidence interval formula is used for the limits?

By default the 1999 form, SE = s × √(1/n + z² ÷ (2(n − 1))). The 1986 paper used the simpler √(3s² ÷ n), which some packages such as R BlandAltmanLeh still use; choose it to match their output.

How do I report the result?

Copy the result sentence, which gives the bias with its interval, the limits of agreement with their intervals and the sample size. Add the plot as SVG or PNG and say in advance what difference you considered acceptable.

Completamente gratisNessun costo, nessuna registrazione
I file restano privatiTutto funziona nel tuo browser
Facile nella tua linguaDisponibile in molte lingue