Tt.read.abs | R Documentation |
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
Tt.read.abs(model.concentrations, model.absorbance, predict = NULL, show.plot = TRUE)
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 |
The function returns a list containing the details of the model and the predicted values if added:
model: the summary of the linear model, calculated with the function "lm(model.concentrations~model.absorbance)"
Pr: probability of the model
R.sq: Adjusted R squared of the model
formula: Formula of the model
predicted.concentrations: Vector containing the concentrations calculated with the formula obtained from the model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.