RegModels.LogisticFit Method

procedure LogisticFit(const B: TVec; const X: TVec; const Y: TVec; Constant: Boolean; const Weights: TVec);

Fits logistic equation to data.

#NameDescription
1XVector of independent variable.
2YVector of dependent variable.
3ConstantIf false, B[0] i.e. constant term in nominator is set to 0.0.
4WeightsWeights (optional). Weights are used only if they are set.
5BReturns regression coefficients for logistic function.

Result: stored in self (calling object)

Remarks:

The routine fits equations to data by minimizing the sum of squared residuals. The observed values obey the following equation:

Y=b[0]+b[1]b[0]1+exp(b[2]x+b[3])Y = b[0] + \cfrac{b[1]-b[0]}{1+\exp (-b[2]\cdot x + b[3] )}
See Also: RegModels.LogisticEval