This script shows how to perform an univariate logistic regression in Matlab. By using the 'publish to html' funtionality provided by the Matlab Editor, a documented example can be generated.
Such an example is provided in the 'html' subdirectory which is included within the zip file.
Marco Cococcioni (2020). LOGREG (https://www.mathworks.com/matlabcentral/fileexchange/22547-logreg), MATLAB Central File Exchange. Retrieved .
Hi, thank you for this code. I have similar data to fit except I need to do some extrapolation. For example, if you consider the example you provide in the html file without data below, say 50 on the x-axis, how would you extrapolate the model to 0 in order to find the fit parameter 'y' ?