Four-parameter logistic fit, version 2.1.1
four-pl@2.1.1: this version's equations with their symbols, each constant's value, their sources and whether each was read, a worked example where the record holds one, its level and what it was checked against, the number of cases, and what was not checked. This version's record is not rewritten; a correction is added under Changes.
What this page can and cannot show
Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.
Every version of this method · Every method · What the levels mean
Version 2.1.1
Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page. four-pl@2.1.1
What this page can and cannot show
What was checked
Version 2 unweighted estimates and intervals are checked against the compatible R fixtures. Historical relative-loss and reporting-policy fixtures are archival, not validation of IRLS or the permutation gate.
Cases: no case set is linked to four-pl@2.1.1.
What was not checked
The outside reference, R's nls, fitted the curve this project typed, on data this project generated (synthetic, known noise): agreement shows the minimisation, not an independent check of the model (this project's ruling of 11 November 2026, section S8(f), "another program's fit of our model"). No published case set names four-pl@2.1.1: the R reference set is not tied to this version by its manifest. No measured dose-response data set from another party is among the cases. Interval coverage has not been simulated (tracked as [SCI-90](/technical/known-issues) in Known issues). Hill 1910 was not read; the form is taken from Ritz 2015, Eq. (2), read in full. No case runs this method through the served tool on its production runtime. No person has worked these cases or read these sources; the reading and checks recorded here were made by AI sessions.
Equations
Equation 1
y = Bottom + (Top − Bottom) / (1 + 10^((logIC50 − x) × Hill)), x = log10 of the concentration in mol/L. This is Ritz 2015's Eq. (2), f(x) = c + (d − c)/(1 + exp(b (log x − log e))), with c = Bottom, d = Top, e = IC50 and b = −Hill.
| Symbol | Meaning and unit |
|---|---|
| y | response, 1 |
| x | log10 of the concentration in mol/L, 1 |
| Top, Bottom | the curve's plateaus, in the response's own unit, 1 |
| logIC50 | log10 of the concentration at the curve's midpoint, in mol/L, 1 |
| Hill | slope; negative for a falling (inhibition) curve, 1 |
Source: Ritz C, Baty F, Streibig JC, Gerhard D. Dose-response analysis using R. PLoS ONE 2015;10(12):e0146021., equation 2, version of record, the publisher's JATS XML; read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person.
Equation 2
Unweighted: minimise Σ (yᵢ − f(xᵢ))² over the free parameters (Ritz 2015, Eq. (4), with every weight 1).
| Symbol | Meaning and unit |
|---|---|
| f(x_i) | the curve at observation i, 1 |
Source: Ritz C, Baty F, Streibig JC, Gerhard D. Dose-response analysis using R. PLoS ONE 2015;10(12):e0146021., equation 4, version of record, the publisher's JATS XML; read in full on 2026-11-11 by an AI-assisted session; not yet checked by a person.
Constants
Constants: none used.
Worked example
Worked example: one case of four-pl@2.1.1, from its inputs through each step to the answer. Values are written as a person writes them; the working carries more digits, so your own figure may differ in the last digit shown.
Inputs
- points[0].concentration = 0.0001
- points[0].response = -0.078
- points[1].concentration = 0.000033333333333333335
- points[1].response = 0.479
- points[2].concentration = 0.000011111111111111112
- points[2].response = 6.634
- points[3].concentration = 0.0000037037037037037037
- points[3].response = 8.238
- points[4].concentration = 0.000001234567901234568
- points[4].response = 16.416
- points[5].concentration = 4.11522633744856e-7
- points[5].response = 38.245
- points[6].concentration = 1.3717421124828532e-7
- points[6].response = 72.189
- points[7].concentration = 4.5724737082761776e-8
- points[7].response = 84.997
- points[8].concentration = 1.5241579027587257e-8
- points[8].response = 97.081
- points[9].concentration = 5.080526342529086e-9
- points[9].response = 98.388
- concentrationUnit = M
- weighting = none
Steps
- params: R nls estimates = Top 99.35503600, Bottom 1.787072884, logIC50 -6.555375013, Hill -1.129301666.
- f1: 4PL = f = 1.9138245; y − f = -1.9918245; (y − f)² = 3.9673647, from C_M = 0.000100000, y = -0.078.
- f2: 4PL = f = 2.2239736; y − f = -1.7449736; (y − f)² = 3.0449327, from C_M = 0.0000333333, y = 0.479.
- f3: 4PL = f = 3.2813897; y − f = 3.3526103; (y − f)² = 11.239996, from C_M = 0.0000111111, y = 6.634.
- f4: 4PL = f = 6.7668271; y − f = 1.4711729; (y − f)² = 2.1643497, from C_M = 0.00000370370, y = 8.238.
- f5: 4PL = f = 17.087232; y − f = -0.67123229; (y − f)² = 0.45055279, from C_M = 0.00000123457, y = 16.416.
- f6: 4PL = f = 39.974692; y − f = -1.7296924; (y − f)² = 2.9918357, from C_M = 0.000000411523, y = 38.245.
- f7: 4PL = f = 69.090046; y − f = 3.0989543; (y − f)² = 9.6035180, from C_M = 0.000000137174, y = 72.189.
- f8: 4PL = f = 88.126992; y − f = -3.1299921; (y − f)² = 9.7968505, from C_M = 0.0000000457247, y = 84.997.
- f9: 4PL = f = 95.818707; y − f = 1.2622927; (y − f)² = 1.5933828, from C_M = 0.0000000152416, y = 97.081.
- f10: 4PL = f = 98.305314; y − f = 0.082685779; (y − f)² = 0.0068369380, from C_M = 0.00000000508053, y = 98.388.
- rss: RSS = Σ (y − f)² = 44.859620, gives rss.
The working, as the case writes it:
y = Bottom + (Top − Bottom)/(1 + 10^((logIC50 − log10 C)·Hill))
RSS = Σ (y − f)².
Answer
rss= 44.859620
Where these values came from: another program's fit of our model; Ritz C, Baty F, Streibig JC, Gerhard D. Dose-response analysis using R. PLoS ONE 2015;10:e0146021, Eq. (2); R nls estimates as printed in stored reference values.
The build has not run this example through the tool.
Worked by an AI session on 2026-11-21. No person has yet worked this case.
What it refuses, and its input ranges
NO_DATA: No points.beyond-double-range: A fitted plateau, multiplied back from the scaled responses, lies beyond the largest number the arithmetic can hold (2.1.1).NON_POSITIVE_CONCENTRATION: A concentration of zero or below is used as a point.NON_FINITE_DATA: A concentration or response is not a finite number.INVALID_UNIT: A concentration without its concentrationUnit, or a log concentration without logConcentrationUnit "log10 M".INVALID_FIXED_PARAM: A fixed parameter that is not a finite number.
Changes
2026-11-21-four-pl@2.1.1-1
2026-11-21 · four-pl@2.1.1 · Corrections to our methods
- What was wrong: The fit formed the squares of the residuals from the responses as given. Where the largest absolute response, or a fixed plateau, was near 1e±160 or beyond, the squares overflowed or underflowed: no starting point had a finite objective and an unweighted curve was refused as needing positive responses for relative weighting, the identifiability check refused a clear curve, or the search stopped where it started. One seven-point curve with its responses multiplied by 1e-160 came back with a Hill slope of −2, its starting value, for −0.9996, log10 C50 −5.9976 for −5.9983 and no Wald interval; at 1e+160 and 1e±200 the same curve was refused.
- Affected: dose_response_4pl, assay_c50_next_concentration, assay_c50_leave_one_out, the four-parameter model of assay_standard_curve, the per-curve fits inside assay_curve_comparison, assay_schild_antagonism, assay_operational_model and assay_two_phase_fit, and the Assay app's dose-response and standard-curve fits, in version 2.1.0, only where the largest absolute response or fixed plateau lay above 2^100 (about 1.3e30) or below 2^-100 (about 7.9e-31). This entry does not cover the standard curve's own wrong fit inside 2^±100, where a four-parameter fit that reaches a minimum at one scale and not at another could be served as a calibration for standards it cannot fit: that is tracked as [SCI-948](/technical/known-issues) in Known issues and corrected in standard-curve-interpolation 1.0.1. Across 2,400 calls of the same eight tools with the responses scaled by 10^-300 to 10^300 and the concentrations shifted by up to 150 decades, 1,838 replies changed, every one with its largest response beyond 2^±100. For dose_response_4pl, assay_c50_next_concentration, assay_c50_leave_one_out and the standard curve, 940 changed: in 920 of them 2.1.0 had refused, and in the 20 where it had given an answer that 2.1.1 changes, 2.1.1's status and C50 are, in every one, those of the same curve with its responses brought near 100 (2.1.0's C50 had been off by up to 0.32 log10 units, or given where the curve is refused). assay_curve_comparison, assay_schild_antagonism, assay_operational_model and assay_two_phase_fit changed in 898 calls from one refusal or withholding to another: their own global fits still leave the range, which is recorded as an open known issue.
- What changed: In 2.1.1, when the largest absolute response or fixed plateau lies outside 2^±100, the responses and fixed plateaus are multiplied by the power of two that brings the largest into [64, 128) before the fit, and the plateaus, the objective and the residual sum of squares are multiplied back; the C50 and the Hill slope do not depend on the response's scale. A fit whose plateau, multiplied back, would pass the largest number the arithmetic can hold (responses near 1e308 with a plateau beyond them) is refused with that reason rather than reported with an infinite plateau. Inside 2^±100 nothing is scaled and every result is the same double: 1,000 seeded realistic calls of each of the eight tools that fit through it (responses from 1e-3 to 1e7 times percent) were compared reply by reply with the previous version and all 8,000 were equal. Between 2^±100 and the fitter's own working range the fit is unchanged: there 2.1.0 and 2.1.1 alike refuse some clear curves as not converged once the largest response passes about 2^44 (about 2e13) or falls below about 2^-41 (about 4e-13), which is recorded as an open known issue. Curves whose own responses span more than about 2^1000 were not checked; with 1/Y² weighting, a response that far below the largest can be lost in the scale.
- How it was found: An audit probe of 21 November 2026 through the tool handlers at responses and concentrations scaled by 1e±160 and 1e±200, recorded as an audit finding: 140 of 140 calls with the responses scaled gave a wrong finding, none with the concentrations scaled. The scientific review's underflow rule of 18 November 2026, and its ruling of 21 November 2026 that in-range data stay unscaled, say what clears it. Reproduced by unit tests on 21 November 2026 that failed before the fix.
- Cases added: stored reference values: the finding's minimal cases for dose_response_4pl, assay_c50_next_concentration, assay_c50_leave_one_out and the four-parameter model of assay_standard_curve through the tool handler at 1e±160 and 1e±200 against the unscaled replies, within 1e-6 (the plateaus carrying the factor); a curve at 2^±110 to 2^±1000 against the unscaled fit and analysis; the scale's band edges; a curve near 1e308 whose plateau lies beyond the largest double, refused with its reason.
Tools that use it
Cite this version
Four-parameter logistic fit. Drybench; four-pl@2.1.1; https://www.drybench.com/methods/m/four-pl/2.1.1 (accessed [date]).