Description Usage Arguments Value See Also
This function fits a logistic model to the data via non-linear least squares (?nls). The function fit is: x = B / (1 + exp(-C*(time-D))) where time is the independent variable (1 to length(x)) and x is the dependent variable.
1 | logisticNls(x)
|
x |
The dependent variable. |
A numeric vector of the same length as x but with the model estimates at each point in time. Note: if the logistic model has it's midpoint outside the range of the data, this function will return a vector of NA's (as the original defaultLogistic function had this behavior to prevent poor fitting).
Other logistic.functions: logisticGlm
,
logisticNlsIntercept
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.