calibCurve: Calculates regression curve for external standard...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/calibCurve.R

Description

Polinomial regression curves for external standard calibration are calculated to later convert signals into concentration values.

Usage

1
calibCurve(curve, order = 1, badpoint = NULL, intercept = TRUE, plot = TRUE)

Arguments

curve

Data frame of numeric vectors named 'Conc' and 'Signal' containing the concentrations and the signals, respectively.

order

Regression curve order. 1 for linear (default) and 2 for quadratic.

badpoint

Numeric vector with the points to be ignored in the regresion. This allows the easy elimination of outliers without losing the stored measurement information.

intercept

Logical. If TRUE, the default, the intercept is calculated normally instead of being forced to 0.

plot

Logical. If TRUE, the default, the calibration data is plotted.

Details

A linear method (i.e lm()) is applied to obtain the regression curve.

Value

Model of the calibration curve.

Author(s)

Cristhian Paredes, craparedesca@unal.edu.co

Eduardo Rodriguez de San Miguel, erdsmg@unam.mx

See Also

calibPlane when using more than one explanatory variable.

Examples

1
2
3
4
5
  data(curvelithium)
  model1 <- calibCurve(curve = curvelithium, order = 1)
  model2 <- calibCurve(curve = curvelithium, order = 2)
  summary(model1)
  summary(model2)

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