powered by
Fit a linear model to concentration - time data using robust methods.
rlin.fit(t, C, A = 1, V, serie = "", verbose = TRUE, plot = FALSE, ...)
time values (usually in hours)
concentration values
area covered by the chamber
effective volume of the chamber
id of the flux measurement
logical, TRUE prints message after each flux calculation
logical, mainly intended for use in gasfluxes
gasfluxes
further parameters, currently none
A list of
flux estimate
standard error of flux estimate
p-value of flux estimate
estimated concentration at t = 0 (intercept)
robustness weights
error or warning messages
This is basically a wrapper of rlm using the Huber M estimator. This function never weights the first or last time point with zero with very few data points. However, there might exist "better" robust regression methods for flux estimation.
rlm
# NOT RUN { #a single fit t <- c(0, 1/3, 2/3, 1) C <- c(320, 330, 315, 351) print(fit <- rlin.fit(t, C, 1, 0.3, "a")) plot(C ~ t) curve({fit$f0/0.3 * x + fit$C0}, from = 0, to = 1, add = TRUE) # }
Run the code above in your browser using DataLab