diffs | R Documentation |
Auxiliary functions for obtain the differences and means of a measurement pair, as used in the classic Bland-Altman analysis.
diffs(y1, y2)
means(y1, y2)
y1 , y2 |
numeric. Vectors of numeric measurements of the same length. |
Numeric vector with the differences or means of y1
and y2
,
respectively.
## pair of measurements
y1 <- 1:4
y2 <- c(2, 2, 1, 3)
## differences and means
diffs(y1, y2)
means(y1, y2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.