Bland-Altman plot

This macro produces a Bland-Altman Plot of paired data. The differences and averages of the data pairs are graphed with the center line and the limits of agreement (LOA). Plotted points beyond the LOA are identified in red.

Download the Macro

Be sure that Minitab knows where to find your downloaded macro. Choose File > Options > General. Under Macro location browse to the location where you save macro files.

Important

If you use an older web browser, when you click the Download button, the file may open in Quicktime, which shares the .mac file extension with Minitab macros. To save the macro, right-click the Download button and choose Save target as.

Required Inputs

  • Two columns of paired data

Optional Inputs

STIND C3
Use to specify a column to store indicator data which identifies the data pairs that lead to points beyond the LOA.
HMEAN K
Use to specify a historical mean for the differences which determines the center line and LOA.
HSTDEV K
Use to specify a historical standard deviation for the differences which determines the center line and LOA.
STMN C
Use to specify a column to store the mean of the differences.
STSD C
Use to specify a column to store the standard deviation of the differences.
STLA C
Use to specify a column to store the LOA

Running the Macro

Suppose your paired data are in C1 and C2. To run the macro, choose View > Command Line/History type:

%BLANDALT C1 C2

Click Run.