4.0

4.0 | 1 rating Rate this file 44 Downloads (last 30 days) File Size: 1.64 KB File ID: #24645

Bland Altman Plot

by

 

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

| Watch this File

File Information
Description

%%%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
    

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
13 Mar 2014 Pete

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)

22 Oct 2012 Andy

Good! I need it.

Contact us