bland_altman_plot: Bland and Atlman's limits of agreement plot

Description Usage Arguments Details Author(s) Examples

View source: R/bland_altman_plot.R

Description

This function produces Bland and Altman's Limits of Agreement plot (LoA) when there are repeated measurements with possibly heteroscedastic 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 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 avarage 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 the measurement error are heteroscedastic

Author(s)

Mingkai Peng

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 May 2, 2019, 3:38 p.m.