Skip to contents

Calculate the average deviation from linearity as defined in Kroll et. al. (2000) doi:10.5858/2000-124-1331-EOTEON

Usage

calculate_adl(curve_data, conc_var, signal_var)

Arguments

curve_data

A data frame or tibble containing curve data.

conc_var

Column name in curve_data to indicate concentration.

signal_var

Column name in curve_data to indicate signal.

Value

The average deviation from linearity.

Details

The function will return NA if the number of curve points is less than or equal to three.

References

Kroll, M. H., Praestgaard, J., Michaliszyn, E., & Styer, P. E. (2000). Evaluation of the extent of nonlinearity in reportable range studies. Archives of pathology & laboratory medicine, 124(9), 1331–1338. doi:10.5858/2000-124-1331-EOTEON

Examples

concentration <- c(10, 20, 40, 60, 80, 100)

signal <- c(22561, 31178, 39981, 48390, 52171, 53410)

curve_data <- data.frame(Concentration = concentration,
                         Signal = signal)

adl_value <- calculate_adl(
  curve_data,
  "Concentration",
  "Signal"
)

adl_value
#> [1] 7.439765