Description Usage Arguments Author(s) See Also Examples
View source: R/fluxEstimates.R
Estimate the initial flux and its standard deviation by polynomial regression
1 | 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
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 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.