regressFluxSquare: regressFluxSquare

Description Usage Arguments Author(s) See Also Examples

View source: R/fluxEstimates.R

Description

Estimate the initial flux and its standard deviation by polynomial regression

Usage

1
regressFluxSquare(conc, times, start = c(), tryAutoCorr = TRUE)

Arguments

conc

numeric vector of CO2 concentrations [ppm]

times

times of conc measurements [seconds]

used predictor vector, can be used for return for plotting

start

numeric vector of starting parameters. Not used here.

tryAutoCorr

set to FALSE to not try to fit model with autocorrelation

Author(s)

Thomas Wutzler, Oscar Perez Priego

See Also

regressFluxExp

RespChamberProc

Examples

1
2
3
4
5
6
7
8
#data(chamberLoggerEx1s)
ds <- chamberLoggerEx1s
conc <- ds$CO2_dry <- corrConcDilution(ds)  
times <- ds$TIMESTAMP
res <- regressFluxSquare( conc, times  )
plot( conc ~ times)
m <- attr(res,"model")
#lines( fitted(m) ~ times )

RespChamberProc documentation built on May 2, 2019, 5:53 p.m.