Learn R Programming

tern (version 0.9.8)

s_bland_altman: 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)

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

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.

Examples

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

s_bland_altman(x, y, conf_level = 0.9)

Run the code above in your browser using DataLab