View source: R/fluxEstimates.R
regressFluxSquare | R Documentation |
Estimate the initial flux and its std-dev by polynomial regression
regressFluxSquare(conc, times, start = c(),
tryAutoCorr = TRUE)
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 |
Thomas Wutzler, Oscar Perez Priego
regressFluxExp
RespChamberProc
#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 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.