Skip to content

Code for creating bland-altman and concordance correlation coefficient plots

Notifications You must be signed in to change notification settings

dmolony3/bland-altman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Bland Altman and Concordance Correlation Coefficient

This code generates Bland-altman and concordance correlation coefficient for 2 input variables

Input

The two variables should be saved as a csv file with two columns (no header)

Usage

From the command window run the file by providing the path to the csv file and the axis limits

patient_name = python bland_altman.py --fname=path\to\csv\file.csv --minlimit=0 --maxlimit=100

Optionally the variables data labels can be specified with the arguments var1 and var2

python bland_altman.py --fname=path\to\csv\file.csv --minlimit=0 --maxlimit=100 --var1="Computed Plaque Burden" --var2="Measured Plaque Burden"

Output

The code returns the bland-altman plot and the concordance correlatoin plot and coefficient Alt Text

Requirements

The code requires pandas, numpy and matplotlib

About

Code for creating bland-altman and concordance correlation coefficient plots

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages