Thanks to Kit Baum, there is a new package -bap- at the SSC.
It is yet another command for doing a classical Bland-Altman plot.
The -bap- is simple to use and yet flexible to add -twoway- options.
Further, the -bap- returns relevant measures for validity in a matrix.
Get example data:
Code:
. infile using "https://www-users.york.ac.uk/~mb55/datasets/pefr.dct", clear . label variable wright1 "PEFR 1, Wright (l/min) . label variable wright2 "PEFR 2, Wright (l/min) . label variable mini1 "PEFR 1, mini Wright (l/min) . label variable mini2 "PEFR 2, mini Wright (l/min)
Code:
. . bap mini1 mini2 | Measurements | Bias | Agreement | LOA | n mean [95% CI] | diff [95% CI] | SEM | [lower upper] ------------------------------+--------------------------------------------+---------------------------------+-----------+--------------------- PEFR 1, mini Wright (l/min) | 17 452.4706 394.3122 510.629 | -2.882353 -17.72713 11.96242 | 4.95156 | -59.47104 53.70634 PEFR 2, mini Wright (l/min) | 17 455.3529 398.1149 512.5909 | . . . | . | . .
Comment