bland_altman {tern}R Documentation

Bland-Altman analysis

Description

[Experimental]

Functions that use the Bland-Altman method to assess the agreement between two numerical vectors.

Usage

s_bland_altman(x, y, conf_level = 0.95)

g_bland_altman(x, y, conf_level = 0.95)

Arguments

x

(numeric)
vector of numbers we want to analyze.

y

(numeric)
vector of numbers we want to analyze, to be compared with x.

conf_level

(proportion)
confidence level of the interval.

Value

Functions

Examples

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)


[Package tern version 0.9.4 Index]