logisticNlsIntercept: Helper function for defaultLogistic

Description Usage Arguments Value See Also

Description

This function fits a logistic model to the data via non-linear least squares (?nls). The function fit is: x = A + B / (1 + exp(-C*(time-D))) where time is the independent variable (1 to length(x)) and x is the dependent variable.

Usage

1

Arguments

x

The dependent variable.

Value

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).

See Also

Other logistic.functions: logisticGlm, logisticNls


SWS-Methodology/faoswsImputation documentation built on May 9, 2019, 11:48 a.m.