bland_altman | R Documentation |
Functions that use the Bland-Altman method to assess the agreement between two numerical vectors.
s_bland_altman(x, y, conf_level = 0.95)
g_bland_altman(x, y, conf_level = 0.95)
x |
( |
y |
( |
conf_level |
( |
s_bland_altman()
returns a named list of the following elements: df
, difference_mean
, ci_mean
,
difference_sd
, difference_se
, upper_agreement_limit
, lower_agreement_limit
, agreement_limit_se
,
upper_agreement_limit_ci
, lower_agreement_limit_ci
, t_value
, and n
.
g_bland_altman()
returns a ggplot
Bland-Altman plot.
s_bland_altman()
: Statistics function that compares two numeric vectors using the Bland-Altman method
and calculates a variety of statistics.
g_bland_altman()
: Graphing function that produces a Bland-Altman plot.
x <- seq(1, 60, 5)
y <- seq(5, 50, 4)
conf_level <- 0.9
# Derive statistics that are needed for Bland-Altman plot
s_bland_altman(x, y, conf_level = conf_level)
# Create a Bland-Altman plot
g_bland_altman(x = x, y = y, conf_level = conf_level)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.