Description Usage Arguments Details Value Functions Examples
Intended to allow the extraction of exponential growth rates from time series while accounting for the presence of initial lags in growth, saturating abundances, or both in the same time series. These equations provide smoothed piecewise linear functions, where lagged or saturated portions of the time series maintain constant abundance, and elsewhere abundance increases linearly.
1 2 3 4 5 6 7 |
x |
Time variable |
a |
Initial abundance at time = 0 |
b |
slope of the increasing linear portion of the time series, must be >=0 |
B1 |
Time point where abundance starts to increase (leaves lag phase) |
B2 |
Time point where abundance stops increasing (saturates) |
s |
Smoothing parameter; as this term -> 0, these continuous functions approach true piecewise equations |
This approach for lag, saturation, and lag+saturation are based on: https://stats.stackexchange.com/questions/149627/piecewise-regression-with-constraints which invokes a smooth approximation to a piecewise linear function, where parameter s determines the smoothness around break-points. Generally, as s->0 this smooth model approximates more closely the piecewise linear one. The s term could be fit explicitly, but for now it is fixed at a small number (1E-10).
Note: Currently, only the linear model without lag or saturation can produce negative growth rate estimates. The lagged/saturating models will be extended to allow this possibility in future versions of this package.
Abundance at time x as a function of model parameters
lag
: Lagged increasing linear function
sat
: Saturating linear function
flr
: Floored decreasing linear function
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.