fit_water_regression
fit_water_regression(
ref_data,
calibration_half_width,
slope_tolerance,
r2_thres,
plot_regression_data = FALSE,
plot_dir = "/dev/null",
site,
min_nobs = NA
)
Returns a data.frame of calibration parameters. Output data.frame includes slope, intercept, and r^2 values for d13C and CO2 values.
Reference data.frame from which to estimate calibration parameters.
Determines the period (in days) from which reference data are selected (period is 2*calibration_half_width).
Allows for filtering of slopes that deviate from 1 by slope_tolerance.
What is the minimum r2 value permitted in a 'useful' calibration relationship.
True or false - should we plot the data used in the regression? Useful for debugging.
If plot_regression_data is true, where should the plots be saved?
Needed for regression plots.
Minimum number of high-frequency observations to define a peak.