s_bland_altman: Bland-Altman analysis

View source: R/bland_altman.R

s_bland_altmanR Documentation

Bland-Altman analysis

Description

[Experimental]

Statistics function that uses the Bland-Altman method to assess the agreement between two numerical vectors and calculates a variety of statistics.

Usage

s_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

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

  • n

Examples

x <- seq(1, 60, 5)
y <- seq(5, 50, 4)

s_bland_altman(x, y, conf_level = 0.9)


tern documentation built on April 4, 2025, 12:10 a.m.