View source: R/analyse_sigmoidal_drift.R
| sigdrift_model | R Documentation |
Model function of SSsigmoidal_drift(): sigmoidal_drift() plus the
partial derivatives for the parameters written as bare symbols in the
call (see free_params()), so stats::nls() skips
stats::numericDeriv(). The sigmoid partials come from
sigmoid_core(); the drift onset xmid + u_f / k moves with every
sigmoid parameter through the rate k, and the hinge derivatives are
one-sided at the onset.
sigdrift_model(
t,
A,
B,
xmid,
slope,
slope_B,
drift_fraction,
shape = "symmetric"
)
t |
A numeric vector of the predictor variable (time). |
A |
A numeric parameter for the starting asymptote of the response variable. |
B |
A numeric parameter for the ending asymptote of the response variable. |
xmid |
A numeric parameter for the time at the inflection point (the
steepest point) of the curve, in units of the predictor variable |
slope |
A numeric parameter for the response rate |
slope_B |
A numeric parameter for the linear drift rate |
drift_fraction |
A numeric fraction of the primary amplitude |
shape |
Character; the 4-parameter sigmoidal shape. One of
|
A numeric vector of predicted values with a "gradient"
attribute when any parameter is free.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.