signal2conc {transmem}R Documentation

Converts signals into concentration by using given model.

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

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

  # 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))

[Package transmem version 0.1.1 Index]