Functions > Data Analysis > Curve Fitting > Logistic Regression
Logistic Regression
lgsfit(vx, vy, vg)—Returns a vector containing the coefficients for a logistic curve of the form a / (1 + b · exp(−c·x)) that best approximates the data in vx and vy using guess values in vg.
The lgsfit function employs the Levenberg-Marquardt method for minimization.
vx, vy are vectors of real data values of the same length, corresponding to the x and y values in the data set. There must be at least three data points.
vg is a three-element vector of real guess values for the parameters a, b, and c in the logistic equation.
Was this helpful?