Skip to contents

Calculate the Percent Residual Accuracy (PRA) of the Linear Model.

Usage

calculate_pra_linear(
  curve_data,
  conc_var,
  signal_var,
  dilution_data = lifecycle::deprecated()
)

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.

dilution_data

[Deprecated] dilution_data was renamed to curve_data.

Value

The Percent Residual Accuracy (PRA) of the Linear Model. More information of this value can be found in https://www.sciencedirect.com/science/article/abs/pii/S0039914018307549

Details

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

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)

pra_value <- calculate_pra_linear(
  curve_data,
  "Concentration",
  "Signal"
)

pra_value
#> [1] 66.43913