EconPapers    
Economics at your fingertips  
 

BLANDALTMAN: Stata module to create Bland-Altman plots featuring differences or %differences or ratios, with options to add a variety of lines and intervals

Mark Chatfield

Statistical Software Components from Boston College Department of Economics

Abstract: blandaltman produces Bland-Altman plots featuring (a) difference, (b) percentage difference or (c) ratio on the y-axis, and (arithmetic or geometric) mean on the x-axis. By default, regression-based bias and limits of agreement are produced in order to help everyone see how the distribution of (a), (b) or (c) varies with the average of the paired measurements (this is a key purpose of a Bland-Altman plot). Horizontal lines for bias and limits of agreement can be produced instead. This is the first community-contributed Bland-Altman plot command in Stata allowing display of confidence intervals for the bias and limits of agreement, as well as a prediction interval and (up to 3) tolerance intervals, assuming the distribution of (a), (b) or log (c) is normal and has no relationship with the magnitude of the measurements. Logarithmically-scaled axes are used (i) for both axes when ratios are plotted against the geometric mean, (ii) for the x-axis when percentage differences are plotted against the (arithmetic or geometric) mean.

Language: Stata
Requires: Stata version 11
Keywords: niceloglabels; tolerance; concord; kappaetc; rmloa; biasplot; pairplot; batplot; baplot; agree; gr0094 (search for similar items in EconPapers)
Date: 2022-01-18, Revised 2023-09-28
Note: This module should be installed from within Stata by typing "ssc install blandaltman". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:

Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/b/blandaltman.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/b/blandaltman.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/labmeasures.dta sample data file (application/x-stata)
http://fmwww.bc.edu/repec/bocode/p/PEFR.dta sample data file (application/x-stata)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s459040

Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php

Access Statistics for this software item

More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-04-14
Handle: RePEc:boc:bocode:s459040