void LogisticFit(TVec B, TVec X, TVec Y, Boolean Constant, TVec Weights)
Fits logistic equation to data.
| # | Name | Description |
|---|---|---|
| 1 | X | Vector of independent variable. |
| 2 | Y | Vector of dependent variable. |
| 3 | Constant | If false, B[0] i.e. constant term in nominator is set to 0.0. |
| 4 | Weights | Weights (optional). Weights are used only if they are set. |
| 5 | B | Returns 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:
See Also: RegModels.LogisticEval