signal2conc: Converts signals into concentration by using given model.

Description Usage Arguments Value Author(s) Examples

View source: R/signal2conc.R

Description

After a calibration model is established (either by using calibCurve or calibPlane), the function interpolates the signals of samples to get the associated concentrations.

Usage

1
signal2conc(signal, model, dilution = NULL, planar = FALSE, Conc.S = NULL)

Arguments

signal

Numeric vector of signals to be interpolated.

model

Regression model of the calibration. Must be obtained using calibCurve or calibPlane.

dilution

Numeric vector of dilution factors applied to samples before measurement

planar

Logical, default to FALSE. It must be set to TRUE if more than one explanatory variable is used. A planar calibration model must be provided to model parameter.

Conc.S

Numeric vector of the concentrations of the interferent species to be considered when a planar calibration model is provided to model. It is taken into account if planar = TRUE.

Value

Numeric vector of species concentrations.

Author(s)

Cristhian Paredes, craparedesca@unal.edu.co

Eduardo Rodriguez de San Miguel, erdsmg@unam.mx

Examples

1
2
3
4
5
6
  # A regression model is needed:
  data(curvelithium)
  model <- calibCurve(curve = curvelithium, order = 2)

  signal <- c(0.395, 0.259, 0.188, 0.141, 0.110, 0.095, 0.084)
  (conc <- signal2conc(signal = signal, model = model))

transmem documentation built on July 1, 2020, 10:38 p.m.