fit_exp_lag {miLAG} | R Documentation |
fit_exp_lag
Description
Fits the lag to multiple growth curves based on the basic tangent method
Usage
fit_exp_lag(data, tangent_method, n0, curve_points = 3)
Arguments
data |
a data frame with two required columns names: "time" and "biomass",and one optional column: "curve_id" This is data from may come from multiple growth curves |
tangent_method |
"local.regression" (if the tangent is fitted to a number of points around the maximal growth rate) or "to.point" (if the tangent is fitted only to the point where the growth rate is maximal); defaults to "to.point" |
n0 |
the initial biomass (a tangent line crossing N0 line will determine the lag) |
curve_points |
if tangent_method = "local.regression" then curve_points is the number of points the line is fitted to; defaults to 3 i.e. the point with the maximal uptake rate one point before and one point aftter |
Value
growth curve data (as input) together with additional columns: lag, line.intercept and line.slope