This code generates Bland-altman and concordance correlation coefficient for 2 input variables
The two variables should be saved as a csv file with two columns (no header)
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"
The code returns the bland-altman plot and the concordance correlatoin plot and coefficient
The code requires pandas, numpy and matplotlib