Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Five parameters logistic regression - There and back again

Be the first to rate this file! 12 Downloads (last 30 days) File Size: 18.3 KB File ID: #38043 Version: 1.2
image thumbnail

Five parameters logistic regression - There and back again



06 Sep 2012 (Updated )

Fit data points with a five points logistic regression or interpolate data.

| Watch this File

File Information

One big holes into MatLab cftool function is the absence of Logistic Functions. In particular, The Five Parameters Logistic Regression or 5PL nonlinear regression model is commonly used for curve-fitting analysis in bioassays or immunoassays such as ELISA, RIA, IRMA or dose-response curves. The standard dose-response curve
is sometimes called the four-parameter logistic equation. It is characterized by it’s classic “S” or sigmoidal shape that fits the bottom and top plateaus of the curve, the EC50, and the slope factor (Hill's slope). This curve is symmetrical around its inflection point. To extend the model to handle curves that are not symmetrical, the 5PL equation adds an additional parameter, which quantifies the asymmetry.
The 5PL equation is:
F(x) = D+(A-D)/((1+(x/C)^B)^E)
A = Minimum asymptote. In a bioassay where you have a standard curve, this can be thought of as the response value at 0 standard concentration.
B = Hill's slope. The Hill's slope refers to the steepness of the curve. It could either be positive or negative.
C = Inflection point. The inflection point is defined as the point on the
curve where the curvature changes direction or signs. C is the concentration of analyte where y=(D-A)/2.
D = Maximum asymptote. In an bioassay where you have a standard curve, this can be thought of as the response value for infinite standard concentration.
E = Asymmetry factor. When E=1 we have a symmetrical curve around inflection point and so we have a four-parameters logistic equation.

In this submission there are 2 functions:
L5P - to find the 5 parameters and to fit your data (as calibrators...);
L5Pinv - to interpolate data of unknown samples onto calibrators curve.


Required Products Curve Fitting Toolbox
MATLAB release MATLAB 7.11 (R2010b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
07 May 2013 Giuseppe Cardillo

this is not true!
if you look well at code:


and so slope can be positive or negative.

Moreover, in the starting points vector:

st_=[min(y) sign(slope) x(Idx) max(y) 1];

sign(slope) is -1 or +1.

So your comment is completely wrong!

Comment only
05 May 2013 precuneus

The code mostly assumes a positive slope (e.g. the automatic selection of starting values).

Comment only
07 Sep 2012 1.1

Changes in help section.
minor improvements

11 Sep 2012 1.2

little chanche in help section to include L4P and L3P

Contact us