bland_altman_plot: Extended Bland-Atlman limits of agreement (LoA) plot

Description Usage Arguments Details Author(s) Examples

View source: R/bland_altman_plot.R

Description

This function produces the extended Bland-Altman Limits of Agreement (LoA) plot when there are repeated measurements with possibly heteroscedastic variance of measurement errors.

Usage

1
bland_altman_plot(data, new = "y1", Ref = "y2", ID = "id", fill = TRUE)

Arguments

data

a dataframe contains the object identification number (id), the measurement values from the new measurement method (y1) and those from the reference standard (y2)

new

specify the variable name or location for the new measurement method

Ref

specify the variable name or location for the reference measuerment method

ID

specify the variable name for location for the subject identification number (id)

fill

logical. if TRUE use the average value for new methods to fill out the missing value (only useful for drawing a plot with all the measurements by the reference standard)

Details

This functions computes the limits of agreement (LoA) when there are repeated measurements and possibly heteroscedastic variance of measurement errors

Author(s)

Mingkai Peng & Patrick Taffé

Examples

1
2
3
4
### Load the data
data(data1)
### Bland and Altman's plot
bland_altman_plot(data1)

Example output

Loading required package: nlme

MethodCompare documentation built on Jan. 5, 2022, 9:06 a.m.