Tt.read.abs: Calculation of a linear model to read and interprete...

View source: R/Ttreadabs.R

Tt.read.absR Documentation

Calculation of a linear model to read and interprete absorbance

Description

The function creates the linear model, based on the absorbance of samples with known concentration. If added, the function can also calculate the concentrations of further samples based on the absorbance

Usage

Tt.read.abs(model.concentrations, model.absorbance, predict = NULL,
  show.plot = TRUE)

Arguments

model.concentrations

a vector containing the known concentrations of the standards (the order must match with that of absorbance)

model.absorbance

a vector containing the absorbance read on the standards (the order must match with that of concentrations)

predict

a vector containing absorbance, in order to predict concentrations

show.plot

if TRUE, the data is plotted showing the model

Value

The function returns a list containing the details of the model and the predicted values if added:

  1. model: the summary of the linear model, calculated with the function "lm(model.concentrations~model.absorbance)"

  2. Pr: probability of the model

  3. R.sq: Adjusted R squared of the model

  4. formula: Formula of the model

  5. predicted.concentrations: Vector containing the concentrations calculated with the formula obtained from the model


teoten108/kgv documentation built on Sept. 22, 2022, 12:54 a.m.