calibrate.object | R Documentation |
Objects of S3 class "calibrate"
are returned by the EnvStats
function calibrate
, which fits a calibration line or curve based
on linear regression.
Objects of class "calibrate"
are lists that inherit from
class
"lm"
and include a component called
x
that stores the model matrix (the values of the predictor variables
for the final calibration model).
See the help file for lm
.
Required Components
Besides the usual components in the list returned by the function lm
,
the following components must be included in a legitimate list of
class "calibrate"
.
x |
the model matrix from the linear model fit. |
Generic functions that have methods for objects of class
"calibrate"
include:
NONE AT PRESENT.
Since objects of class "calibrate"
are lists, you may extract
their components with the $
and [[
operators.
Steven P. Millard (EnvStats@ProbStatInfo.com)
calibrate
, inversePredictCalibrate
,
detectionLimitCalibrate
.
# Create an object of class "calibrate", then print it out.
# The data frame EPA.97.cadmium.111.df contains calibration data for
# cadmium at mass 111 (ng/L) that appeared in Gibbons et al. (1997b)
# and were provided to them by the U.S. EPA.
calibrate.list <- calibrate(Cadmium ~ Spike, data = EPA.97.cadmium.111.df)
names(calibrate.list)
calibrate.list
#----------
# Clean up
#---------
rm(calibrate.list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.