Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › Worked Example Fitting an Emax Curve

Direct-Effect Models: Linear, Emax and Sigmoid Emax · Tutorial 38 of 598

Worked Example Fitting an Emax Curve

Work through a hypothetical Emax fit from starting values to parameter estimates, residual checks, and uncertainty intervals for the plateau and EC50.

Intermediate 11 min read

What You'll Learn

  • Write the direct Emax model and state the assumptions needed for an unweighted fit.
  • Choose starting values from the concentration range and observed responses.
  • Interpret nonlinear least-squares estimates and residuals in a small dataset.
  • Calculate approximate uncertainty in the fitted plateau and EC50.
  • Distinguish uncertainty in model parameters from uncertainty in a predicted response.
  • Recognize when sparse concentrations or residual patterns undermine a fit.

Fitting a Direct Emax Curve

A fitted concentration–response curve summarizes how the expected response changes with concentration. Estimating the curve is not just a matter of drawing a smooth line through observed values: the chosen model, the range of concentrations, the residual pattern, and the precision of the estimates all affect what the fit can support. This tutorial works through a simple direct Emax fit, from data and starting values to parameter uncertainty.

The example uses baseline-adjusted responses, so the response expected at concentration zero is fixed at zero. That assumption is specific to this example; it is not appropriate when the response has a nonzero baseline. The model also uses a Hill coefficient fixed at one, giving the standard Emax curve rather than a sigmoid Emax curve.

Definition: For concentration \(C\geq 0\), the direct Emax model with zero baseline is
$$ E(C)=\frac{E_{\max}C}{EC_{50}+C}. $$
Here \(E(C)\) is the expected response at concentration \(C\), \(E_{\max}>0\) is the plateau response above baseline, and \(EC_{50}>0\) is the concentration at which the expected response is \(E_{\max}/2\). An observation is modeled as \(Y_i=E(C_i)+\varepsilon_i\).

For an unweighted nonlinear least-squares fit, the usual working assumptions are that the errors have mean zero, are independent across observations, and have a common finite variance. The response scale and concentration units must be consistent throughout. If the variability changes with concentration or response, unweighted least squares may give inefficient estimates and misleading uncertainty; the earlier material on weighted fitting and residual-error models addresses those alternatives. Replicate observations are permitted, but they must be independent observations for the stated error assumption to hold.

Starting Values and a Small Dataset

Starting values are initial guesses supplied to the numerical optimizer, not estimates to report as results. A reasonable starting value for \(E_{\max}\) is near the largest observed response when the data approach a plateau. A reasonable \(EC_{50}\) is near the concentration at which responses are about half that plateau. These visual clues are weak when the data do not include concentrations near the plateau or the half-maximal response; in that case, several starting values may be needed to check whether the fit is stable.

Worked Example: Fitting a Hypothetical Concentration–Response Dataset

Suppose a hypothetical assay records baseline-adjusted responses at four concentrations, with two independent observations at each concentration. Response is measured in response units and concentration in micromoles per liter (\(\mu\text{mol}/\text{L}\)).

Concentration \(C\) (\(\mu\text{mol}/\text{L}\))Observed responses (response units)
0.510.7620, 12.7620
231.4066, 33.4066
856.7449, 58.7449
2468.3984, 71.2884

The last pair has residuals of approximately \(-1.4897\) and \(+1.4003\) response units at \(C=24\). Use \(E_{\max}=78.1\) response units and \(EC_{50}=2.82\ \mu\text{mol}/\text{L}\) as candidate estimates. These give a plateau near the largest observations and place half of the plateau, \(39.05\) response units, at a concentration between 2 and 8 \(\mu\text{mol}/\text{L}\), consistent with the response pattern.

The fitted value at each concentration follows by substitution. For example, at \(C=8\ \mu\text{mol}/\text{L}\),

$$ E(8)=\frac{78.1(8)}{2.82+8} =\frac{624.8}{10.82} =57.7449\text{ response units}. $$

The corresponding curve values at \(C=0.5,2,8,\) and \(24\) are approximately \(11.7620,\ 32.4066,\ 57.7449,\) and \(69.8881\) response units. The displayed observations are those curve values paired with residuals of \(-1,+1\), \(-1,+1\), \(-1,+1\), and approximately \(-1.4897,+1.4003\), respectively. Thus the residual sum of squares at these parameters is approximately

$$ SSE\approx10.1801. $$

The fit can be checked locally rather than accepted just because the curve looks plausible. At each concentration the two residuals have opposite signs and are approximately centered, while the model’s derivatives with respect to either parameter are identical for the pair. Their contributions to each least-squares gradient therefore approximately cancel, but the rounded values do not establish an exact stationary point. A numerical optimizer should be checked for convergence to a minimum; the residuals also show that the observations lie on both sides of the fitted curve rather than all pulling it in one direction.

Why the Least-Squares Fit Is Nonlinear

The model is nonlinear in \(EC_{50}\), so the parameters are estimated together by minimizing the sum of squared differences between observations and curve predictions. For observations \(Y_i\) at concentrations \(C_i\), this objective is

$$ SSE(E_{\max},EC_{50}) =\sum_{i=1}^{n}\left(Y_i-\frac{E_{\max}C_i}{EC_{50}+C_i}\right)^2. $$

A useful local justification for the iterative fit comes from the derivatives of the predicted response:

$$ \frac{\partial E(C)}{\partial E_{\max}} =\frac{C}{EC_{50}+C}, \qquad \frac{\partial E(C)}{\partial EC_{50}} =-\frac{E_{\max}C}{(EC_{50}+C)^2}. $$

These derivatives describe how a small parameter change alters the curve. Near current parameter values, the model can be approximated by a linear change in parameters: the prediction changes by approximately the first derivative times the change in each parameter. A least-squares iteration uses this local approximation to choose an update that reduces the residual sum of squares, then recalculates the derivatives at the updated values. Iteration stops when parameter changes and objective changes are sufficiently small. This is a numerical procedure, not a guarantee that every starting value will find the same minimum; convergence, parameter plausibility, and residual diagnostics still require review.

In the paired dataset above, the cancellation can also be expressed through these derivatives. At a fixed concentration \(C\), both observations have the same derivative with respect to each parameter, so the pair's gradient contribution is proportional to the sum of its residuals. The displayed residual pairs are only approximately centered because the observations and fitted values are rounded; therefore they do not establish an exact stationary point. Stationarity should be checked using unrounded data and fitted parameters, and a practical fit should additionally verify that the optimizer has converged to a minimum and that the fitted values and residuals are sensible.

Residual Checks and Failure Modes

A residual is the observed response minus the fitted response, \(e_i=Y_i-\widehat{E}(C_i)\). Residuals should be examined against concentration and fitted response, not only summarized by the sum of squares. A plot can reveal curvature left over from the chosen model, a changing spread, an influential observation, or a cluster of residuals with the same sign. Those patterns can indicate model misspecification, unequal error variance, dependence, or a problematic data point; they should not be dismissed merely because the optimizer reports convergence.

In the worked dataset the residuals are paired approximately around zero at each concentration, with magnitudes about 1 response unit at the first three concentrations and 1.49 and 1.40 response units at 24. This constructed pattern is compatible with a constant-variance error model, but four concentration levels are too few to establish that assumption reliably. The pattern also does not prove the Emax model is biologically correct. It only shows that these data do not display an obvious systematic departure from this particular fitted curve.

The estimate is especially vulnerable when the observed concentrations fail to cover the curve’s informative regions. If all concentrations are far below \(EC_{50}\), then \(E(C)\) is approximately \(E_{\max}C/EC_{50}\): the data may identify the ratio more clearly than either parameter separately. If the observations have not approached a plateau, the estimated \(E_{\max}\) can be strongly influenced by the assumed curve shape and may have large uncertainty. If the concentrations are all far above \(EC_{50}\), the response may look nearly flat and reveal little about \(EC_{50}\). These are identification limitations, not problems that can be solved simply by adding decimal places to the estimates.

The main alternative fitting choices depend on the data and question. Weighted least squares is useful when observations have known or estimated differences in precision; a nonlinear likelihood may be preferable when the response distribution calls for a specific error model. A linear model may be a useful approximation over a narrow concentration range, but it does not represent a saturating plateau. A sigmoid Emax curve adds a Hill coefficient and can represent a steeper or shallower transition, but that extra flexibility can be poorly supported by sparse data. The earlier material on comparing linear and Emax models and choosing between Emax and sigmoid Emax motivates those choices; here the focus remains on fitting and checking the standard Emax curve.

Uncertainty in the Plateau and \(EC_{50}\)

A point estimate does not show how precisely the data determine a parameter. Under a well-behaved fit, an approximate covariance matrix can be obtained from the local derivatives and the estimated residual variance. In simple unweighted nonlinear least squares, the local approximation is \(s^2(J^\mathsf{T}J)^{-1}\), where \(J\) is the matrix of derivatives evaluated at the fitted parameters and \(s^2=SSE/(n-k)\). Here \(k\) is the number of fitted parameters; for the zero-baseline model, \(k=2\). The approximation is local and relies on the model and error assumptions being adequate.

Worked Example: Interpreting Parameter Uncertainty

Consider a separate hypothetical fit report for the same zero-baseline Emax model. Suppose it gives \(\widehat{E}_{\max}=78.1\) response units, \(\widehat{EC}_{50}=2.82\ \mu\text{mol}/\text{L}\), residual variance \(s^2=1.696\ (\text{response units})^2\), and the relevant diagonal entry of \((J^\mathsf{T}J)^{-1}\) for \(E_{\max}\) is \(172.4/79.6104\). These are illustrative fit-output quantities; they need not be the covariance quantities from the preceding dataset.

The estimated variance and standard error of the plateau are

$$ \widehat{\operatorname{Var}}(\widehat{E}_{\max}) =1.696\left(\frac{172.4}{79.6104}\right) =3.672766\ldots \approx3.673\ (\text{response units})^2, $$

and

$$ SE(\widehat{E}_{\max})=\sqrt{3.672766\ldots} \approx1.916\text{ response units}. $$

Using a normal approximation, an approximate 95% Wald interval is

$$ 78.1\pm1.96(1.916) =[74.34464,\ 81.85536] \approx[74.34,\ 81.86]\text{ response units}. $$

Under the model and local approximation, this interval is a range of plausible values for the plateau parameter given the fit. Its 95% confidence level refers to the long-run coverage of the interval procedure under repeated sampling, not a 95% probability that this particular fixed parameter lies in the calculated interval.

Suppose the same report gives \(SE(\widehat{EC}_{50})=0.400\ \mu\text{mol}/\text{L}\). Its approximate 95% Wald interval is

$$ 2.82\pm1.96(0.400) =[2.036,\ 3.604]\ \mu\text{mol}/\text{L}. $$

This interval describes uncertainty in the half-maximal concentration, not a range of observed concentrations or responses. A Wald interval is a local, symmetric approximation; it can be unreliable if the parameter is near a constraint, the likelihood is strongly asymmetric, or the parameter is weakly identified. In such cases, a profile-likelihood interval or another suitable method may better reflect the uncertainty, as covered in the earlier material on profile likelihood and weak identification.

From Fitted Parameters to a Response Prediction

Worked Example: Predicting Response at a Chosen Concentration

Using the illustrative estimates \(\widehat{E}_{\max}=78.1\) response units and \(\widehat{EC}_{50}=2.82\ \mu\text{mol}/\text{L}\), calculate the fitted response at \(C=8\ \mu\text{mol}/\text{L}\).

$$ \widehat{E}(8) =\frac{78.1(8)}{2.82+8} =\frac{624.8}{10.82} =57.7449\ldots \approx57.74\text{ response units}. $$

The fitted response at this concentration is about 57.74 response units, below the estimated plateau of 78.1 response units. This is a model prediction, not a claim that every future observation at that concentration will equal 57.74. An interval for the expected response and a prediction interval for a new observation answer different questions: the latter also includes observation-level residual variation. Uncertainty in the response prediction depends on uncertainty in both parameters and their covariance, not only on the uncertainty in \(E_{\max}\).

Common Mistake and Practical Summary

Common mistake: “The optimizer converged, so the plateau and \(EC_{50}\) are well estimated.” Convergence only means the numerical procedure met its stopping criteria. It does not establish that the data cover the plateau and transition regions, that the residual assumptions are reasonable, or that alternative starting values would lead to the same solution. The correction is to inspect the fitted curve, residuals, parameter constraints, uncertainty intervals, and sensitivity to starting values before interpreting the estimates.

A standard Emax fit is most useful when its interpretation follows the data’s information content. Report the response and concentration units; distinguish the plateau from the half-maximal concentration; and describe uncertainty and limitations rather than presenting point estimates as exact biological constants. If the estimated plateau is poorly determined because the data do not approach saturation, that limitation should remain explicit even when the fitted curve looks smooth.

Check Your Understanding

Answer each question, then compare your reasoning with the solutions.

  1. In the zero-baseline Emax model, what expected response occurs at \(C=EC_{50}\)?
  2. Why can observations only at concentrations much lower than \(EC_{50}\) make \(E_{\max}\) and \(EC_{50}\) difficult to distinguish?
  3. A fitted response at one concentration is lower than the observed response. What is the sign of the residual under the definition used here?
  4. What does a 95% confidence interval for \(E_{\max}\) mean, and what does it not mean?

Solutions. (1) Substitution gives \(E(EC_{50})=E_{\max}EC_{50}/(EC_{50}+EC_{50})=E_{\max}/2\). (2) When \(C\ll EC_{50}\), \(E(C)\) is approximately \((E_{\max}/EC_{50})C\), so the low-concentration data primarily inform the ratio of the two parameters. (3) The residual is positive because \(e_i=Y_i-\widehat{E}(C_i)\) and the observed response exceeds the fitted response. (4) The interval procedure has 95% long-run coverage under its assumptions; it does not assign a 95% probability to the fixed parameter being in this particular interval.

Clinical Biostats