4.0

4.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 2.18 KB File ID: #22432
image thumbnail

Bland Altman Plots. Andrea Padoan, Dicember 2008

by Andrea Padoan

 

13 Dec 2008

Bland Altman plot is a method of data plotting to assess agreement between two different assays

| Watch this File

File Information
Description

INPUT:
3 columns array.
column1 (the left): sample ID or sample number
column2 and column3: instrument1 and instrument 2 outout

GRAPH OUTPUT:
Bland Altman scatter plot with mean difference line and +-2 SD lines.

CONSOLE OUTPUT:
diffmean = mean of the difference (the same you see in plot)
sdev = standard deviation of the differences.
 

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
19 Oct 2011 Dan

Works fine except the labels for the positive & negative 1.96*SD is not placed exactly right. You need to correct the text function calls and offset the y coordinate by diffmean like this:

text (maxx, twosdev+diffmean, ' 1.96 sd ', 'Color', 'b' , 'FontSize', 12, 'FontWeight', 'bold');

text (maxx, -twosdev+diffmean, ' -1.96 sd', 'Color', 'b' , 'FontSize', 12, 'FontWeight', 'bold');

Dan

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
statistics Cristina McIntire 15 Dec 2008 15:14:08
probability Cristina McIntire 15 Dec 2008 15:14:08
plot Cristina McIntire 15 Dec 2008 15:14:08
bland altman Cristina McIntire 15 Dec 2008 15:14:08
scatter Cristina McIntire 15 Dec 2008 15:14:08
bland altman plot Andrea Padoan 15 Dec 2008 15:14:16
tukey meandifference plot Andrea Padoan 15 Dec 2008 15:14:16
statistics Andrea Padoan 15 Dec 2008 15:14:16

Contact us at files@mathworks.com