File Exchange

image thumbnail

Bland Altman Plot

version 1.0 (1.64 KB) by

Plots a Bland Altman plot. You can control what is and what is not plotted through 'flag'.

15 Downloads

Updated

View License

%%%Plots a Bland-Altman Plot
%%%INPUTS:
%%% var1 and var2 - vectors of the measurements
%%%flag - how much you want to plot
%%% 0 = no plot
%%% 1 = just the data
%%% 2 = data and the difference and CR lines
%%% 3 = above and a linear fit
%%%
%%%OUTPUTS:
%%% means = the means of the data
%%% diffs = the raw differences
%%% meanDiff = the mean difference
%%% CR = the 2SD confidence limits
%%% linfit = the paramters for the linear fit

Comments and Ratings (3)

ervin

ervin (view profile)

Pete

Pete (view profile)

I think your calculation of the CR is off (standard deviation is usually corrected by N-1 when using the sample-population. Cf. http://www.medcalc.org/manual/blandaltman.php)

Andy

Andy (view profile)

Good! I need it.

MATLAB Release
MATLAB 7.3 (R2006b)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video