IDEAS home Printed from https://ideas.repec.org/c/boc/bocode/s459040.html
 

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

Author

Listed:
  • Mark Chatfield

    (University of Queensland)

Programming Language

Stata

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.

Suggested Citation

  • Mark Chatfield, 2022. "BLANDALTMAN: Stata module to create Bland-Altman plots featuring differences or %differences or ratios, with options to add a variety of lines and intervals," Statistical Software Components S459040, Boston College Department of Economics, revised 28 Sep 2023.
  • Handle: RePEc:boc:bocode:s459040
    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.
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/repec/bocode/b/blandaltman.ado
    File Function: program code
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/b/blandaltman.sthlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/l/labmeasures.dta
    File Function: sample data file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/p/PEFR.dta
    File Function: sample data file
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:bocode:s459040. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/debocus.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.