calibrate.datalogger: Calibrate data loggers and correct time series of...

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

View source: R/calibrate.datalogger.R

Description

Calibrate a time series of temperatures. Use or gam or glm. If no temperatures.series is given, it will use the read.temperatures.

Usage

1
2
3
4
5
6
7
calibrate.datalogger(
  control.temperatures = stop("Control temperatures is missing"),
  read.temperatures = stop("Read temperatures must be indicated"),
  temperatures.series = NULL,
  gam = TRUE,
  se.fit = TRUE
)

Arguments

control.temperatures

The true temperatures during the calibration process

read.temperatures

The read temperatures during the calibration process

temperatures.series

The temperatures to be converted using calibration

gam

Does gam should be used (TRUE) or glm (FALSE).

se.fit

Do standard errors are to be returned

Details

calibrate.datalogger calibrates data loggers and correct time series of temperatures.

Value

The function will return a corrected time series of temperatures as a vector if se.fit is FALSE or a list if se.fit is TRUE.

Author(s)

Marc Girondot

See Also

Other Data loggers utilities: movement(), uncertainty.datalogger()

Examples

1
2
3
4
5
6
## Not run: 
library(embryogrowth)
calibrate.datalogger(control.temperatures=20:30, 
                     read.temperatures=(20:30)+rnorm(11))

## End(Not run)

Example output

Loading required package: deSolve
Loading required package: optimx
Loading required package: numDeriv
Loading required package: parallel
Loading required package: HelpersMG
Loading required package: lme4
Loading required package: Matrix
Loading required package: coda
$fit
       1        2        3        4        5        6        7        8 
21.07782 21.18908 23.72999 22.73668 23.58537 23.53973 26.39614 24.97104 
       9       10       11 
28.70419 28.82802 30.24193 

$se.fit
        1         2         3         4         5         6         7         8 
0.5598309 0.5498495 0.3689630 0.4258122 0.3756749 0.3779167 0.3747836 0.3396765 
        9        10        11 
0.5403788 0.5513767 0.6849156 

$residual.scale
[1] 1.126527

embryogrowth documentation built on June 4, 2021, 9:05 a.m.