two peak flow meters
Wright minus mini Wright peak expiratory flow (l/min) against their mean for 17 people; solid line = bias, dashed lines = 95% limits of agreement.
Compare two measurement methods: differences against means, with the bias, 95% limits of agreement and their confidence intervals. Journal-sized vector figures, methods text and R code; your data stays in your browser.
Wright minus mini Wright peak expiratory flow (l/min) against their mean for 17 people; solid line = bias, dashed lines = 95% limits of agreement.
The peak flow data with shaded 95% confidence intervals, a zero line and the regression of differences on means (dash-dot).
Illustrative point-of-care minus laboratory glucose as a percentage of their mean, with ±15% acceptable limits (long dashes).
ID Wright Mini Wright 1 494 512 2 395 430 3 516 520
Rows with a missing value in either method are left out and listed. Values are read as typed; use the same units for both methods.
A scatter plot with r, made in Scatter Plot Maker, shows association, not agreement. To explore many variables at once, use Correlation Heatmap Maker.
Bias = mean of the differences; limits of agreement = bias ± 1.96 SD; 95% CIs use t with n − 1 degrees of freedom and standard errors SD/√n (bias) and SD·√(3/n) (limits), as in Bland and Altman (1986, 1999) and the R package BlandAltmanLeh. Every number is checked against base R on the original peak flow data and edge-case files to a relative difference of 10⁻⁹. Normality of the differences is not tested.
They are the bias (mean difference) ± 1.96 SD of the differences. If the differences are roughly normal, about 95% of differences between the two methods for a new subject are expected to lie between them. They describe how far apart two measurements of the same subject can be, in the units of the measurement.
Correlation measures whether two methods rank subjects in the same order, not whether they give the same values. Two methods can correlate almost perfectly while one reads systematically higher, and a wide range of subjects inflates r. Bland and Altman (1986) proposed plotting the differences instead; in their peak flow data r is 0.94, but the limits of agreement span about 150 l/min.
1.96 is the 97.5th percentile of the normal distribution, so ± 1.96 SD covers 95%. The original paper rounded it to 2; most current software and guidelines use 1.96, and this tool always does. The methods text states the multiplier.
Yes, especially with small samples: the limits are estimates and can be very imprecise. The tool gives 95% CIs for the bias (t with n − 1 degrees of freedom) and for each limit (standard error SD·√(3/n), Bland & Altman 1986 and 1999), in the table and optionally as shaded bands.
The differences grow or shrink with the size of the measurement, so the points slope across the plot. Turn on the regression of differences on means to see the slope with its 95% CI. If there is a clear trend, percentage differences or limits that vary with the mean describe agreement better than one pair of limits.
When the spread of differences increases with the magnitude, which is common for laboratory measurements over a wide range. The tool plots 100 × (A − B) divided by the mean of the two methods. A mean of exactly zero makes the percentage undefined, and the tool says which row.
Define the largest difference that would not matter clinically before the study, from clinical requirements or a standard, and compare the limits of agreement with it. Enter it as acceptable limits to draw it on the figure. The tool never gives a pass or fail verdict.
Not yet: keep one pair per subject (for example the first reading). Repeated pairs need a variance-components method (Bland & Altman 1999, 2007); the tool stops with a message when an ID appears twice.