Learn R Programming

coat (version 0.2.0)

diffs: Convenience Functions for Bland-Altman Analysis

Description

Auxiliary functions for obtain the differences and means of a measurement pair, as used in the classic Bland-Altman analysis.

Usage

diffs(y1, y2)

means(y1, y2)

Value

Numeric vector with the differences or means of y1 and y2, respectively.

Arguments

y1, y2

numeric. Vectors of numeric measurements of the same length.

Examples

Run this code
## pair of measurements
y1 <- 1:4
y2 <- c(2, 2, 1, 3)

## differences and means
diffs(y1, y2)
means(y1, y2)

Run the code above in your browser using DataLab