Skip to contents

Calculate the Mandel fitting test for curve data.

Usage

calculate_mandel(
  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

A tibble containing Mandel test statistics. The values are the Mandel test value and its corresponding p value. More information of the test can be found in https://link.springer.com/article/10.1007/s00769-002-0487-6.

Details

The function will return a tibble with NA values 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)

mandel_result <- calculate_mandel(
  curve_data,
  "Concentration",
  "Signal"
)

mandel_result
#> # A tibble: 1 × 2
#>   mandel_stats mandel_p_val
#>          <dbl>        <dbl>
#> 1         70.1      0.00357