Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › Comparing Competing Exposure-Response Models: Worked Analysis

Model Selection and Averaging · Tutorial 487 of 598

Comparing Competing Exposure-Response Models: Worked Analysis

Compare three exposure–response models on the same hypothetical dataset, assess their predictive performance, and combine predictions while accounting for both within-model and between-model uncertainty.

Advanced 12 min read

What You'll Learn

  • State the assumptions needed for a fair likelihood-based comparison of exposure–response models.
  • Calculate AICc, BIC, and relative AICc weights from fitted likelihoods.
  • Interpret subject-level cross-validation scores alongside information criteria.
  • Combine predictions from competing models without averaging parameters that have different meanings.
  • Decompose model-averaged predictive variance into within-model and between-model contributions.
  • Recognize diagnostics and data conditions that can make a model comparison unreliable.

Why Compare Exposure–Response Models?

A relationship between exposure and pharmacodynamic response may rise approximately linearly over the observed range, approach a plateau, or show a gradual transition from baseline to maximum effect. These patterns can be represented by different candidate models, but a visually plausible curve is not enough to choose among them. The comparison must account for fit, model complexity, and predictive performance on subjects not used to fit the model.

This tutorial compares linear, Emax, and sigmoid Emax models on one hypothetical dataset. The goal is not to identify a universally best curve. It is to assess which candidates are supported by the data, whether their predictive performance agrees with their likelihood-based ranking, and how uncertainty about the model affects a prediction.

Definition: A candidate model is one prespecified statistical representation of the exposure–response relationship. A likelihood-based comparison evaluates how well each candidate explains the same observed responses under a stated likelihood. Subject-level cross-validation assesses prediction by withholding entire subjects from fitting. Neither comparison is reliable unless the candidates, data, likelihood, and validation procedure are made comparable.

Candidate Curves and Comparison Assumptions

Let \(C\) denote exposure, measured here in mg/L, and let \(Y\) denote a response measured in percentage points. The three candidate mean functions are:

$$ \begin{aligned} \text{Linear:}\quad & E(Y\mid C)=E_0+\beta C,\\ \text{Emax:}\quad & E(Y\mid C)=E_0+\frac{E_{\max}C}{EC_{50}+C},\\ \text{Sigmoid Emax:}\quad & E(Y\mid C)=E_0+ \frac{E_{\max}C^\gamma}{EC_{50}^\gamma+C^\gamma}. \end{aligned} $$

Here \(E_0\) is the response at zero exposure, \(\beta\) is the linear slope in percentage points per mg/L, \(E_{\max}\) is the maximum increase above baseline in percentage points, \(EC_{50}\) is the exposure producing half that maximum increase, and \(\gamma\) controls the steepness of the sigmoid curve. For the saturating candidates, assume \(EC_{50}>0\), \(E_{\max}>0\), and, for sigmoid Emax, \(\gamma>0\). These equations describe an increasing response; a decreasing response requires an appropriate sign convention or a different parameterization.

For the worked comparison, assume each of 30 independent hypothetical subjects contributes one response and one exposure summary. Conditional on exposure, responses have a normal distribution with the candidate mean function and a common residual variance within each fitted model. Exposure is treated as measured without error. The candidates use the same subjects, response scale, and likelihood family; each likelihood is maximized over its model parameters, including residual variance. These assumptions make the likelihood criteria comparable. They would need reconsideration for repeated observations, correlated responses, influential outliers, or substantial exposure measurement error.

For a model with maximized log likelihood \(\ell\), \(K\) estimated parameters, and \(n\) independent observations, the criteria used below are:

$$ AIC=-2\ell+2K,\qquad AICc=AIC+\frac{2K(K+1)}{n-K-1},\qquad BIC=-2\ell+K\log(n). $$

Smaller AICc or BIC indicates a better trade-off between fit and complexity under that criterion; neither is a probability that a model is true. AICc requires \(n>K+1\). The parameter count includes the residual variance, and all models must use the same observations and likelihood definition for the comparison to be meaningful.

Worked Example: AICc and BIC for Three Fits

Suppose a hypothetical dataset contains 30 independent subject-level exposure–response pairs. A small selection of the data is shown; all 30 pairs are used for the fitted results below.

SubjectExposure (mg/L)Response (percentage points)
10.82.9
21.64.0
32.45.1
44.06.4
56.57.0
69.07.2

Assume the hypothetical maximum-likelihood fitting output is as follows. The linear model estimates \(K=3\) parameters, Emax estimates \(K=4\), and sigmoid Emax estimates \(K=5\). The reported log likelihoods are \(-22.8385\), \(-14.5000\), and \(-16.5500\), respectively.

For the linear model, \(-2\ell=45.6770\). Thus \(AICc=45.6770+2(3)+2(3)(4)/(30-3-1)=45.6770+6+24/26=52.6001\). Its BIC is \(45.6770+3\log(30)=55.8806\).

For Emax, \(AICc=29+8+40/25=38.6000\), and \(BIC=29+4\log(30)=42.6048\). For sigmoid Emax, \(AICc=33.1+10+60/24=45.6000\), and \(BIC=33.1+5\log(30)=50.1060\). The correction is defined because even the largest model has \(30>5+1\).

Candidate\(K\)\(\ell\)AICcBIC
Linear3-22.838552.600155.8806
Emax4-14.500038.600042.6048
Sigmoid Emax5-16.550045.600050.1060

Both criteria rank Emax first in this hypothetical fit. This ranking is conditional on the specified candidates and likelihood; it does not establish that the true biological relationship is Emax-shaped.

From AICc Differences to Relative Weights

Akaike weights provide a normalized summary of relative support among the candidate models. If \(\Delta_m=AICc_m-\min_j AICc_j\), define the unnormalized relative support as \(\exp(-\Delta_m/2)\), then divide by the sum across candidates. The resulting weights are nonnegative and sum to one.

$$ w_m=\frac{\exp(-\Delta_m/2)} {\sum_j \exp(-\Delta_j/2)}. $$

This is a useful weighting scheme for combining predictions, but the weights are not automatically posterior model probabilities. Their interpretation depends on the candidate set and the information criterion, and should not be extended to models that were selected through an unaccounted-for search.

Worked Example: Calculating Relative AICc Weights

From the preceding comparison, the minimum AICc is 38.6. Therefore the differences are 14.0 for linear, 0 for Emax, and 7.0 for sigmoid Emax. Their unnormalized supports are \(\exp(-14/2)=\exp(-7)\approx0.000911882\), \(1\), and \(\exp(-7/2)=\exp(-3.5)\approx0.0301974\). The sum is approximately \(1.0311093\).

Dividing each support by that sum gives weights approximately \(0.00088437\) for linear, \(0.96982933\) for Emax, and \(0.02928631\) for sigmoid Emax. The values add to one (up to rounding). Emax receives most of the relative AICc weight, while the nonzero weights for the other candidates retain some representation of model uncertainty.

Check Predictive Performance by Subject

Information criteria summarize fit and penalize complexity, but prediction is a distinct target. In subject-level cross-validation, all data from a held-out subject are excluded from fitting, the model is fitted using the remaining subjects, and a predictive score is calculated for the held-out subject. If subjects contribute repeated records, those records must stay together in the same fold; splitting one subject’s records between training and validation can leak subject-specific information.

For a normal predictive distribution with mean \(\hat{\mu}_{i,-i}\) and standard deviation \(\hat{\sigma}_{i,-i}\), the held-out log predictive density for response \(y_i\) is \(\log f(y_i\mid\hat{\mu}_{i,-i},\hat{\sigma}_{i,-i})= -\frac12\log(2\pi)-\log(\hat{\sigma}_{i,-i})-\frac12[(y_i-\hat{\mu}_{i,-i})/\hat{\sigma}_{i,-i}]^2\). A higher average held-out log predictive density is better. Cross-validated RMSE is another useful summary, with lower values better, but it assesses errors on the response scale rather than the full predictive density.

Worked Example: Reading Subject-Level Validation Results

Suppose leave-one-subject-out validation is performed on all 30 hypothetical subjects. As one illustration of the log-score calculation, for a held-out response \(y_i=7.10\) percentage points, suppose a fitted fold predicts a normal distribution with mean \(6.80\) percentage points and standard deviation \(1.00\) percentage point. Its log predictive density is \(-0.5\log(2\pi)-\log(1.00)-0.5[(7.10-6.80)/1.00]^2 =-0.91894-0-0.04500=-0.96394\).

Assume the mean log predictive densities and RMSEs across the 30 held-out subjects are:

CandidateMean held-out log predictive densityCross-validated RMSE (percentage points)
Linear-1.711.18
Emax-1.360.91
Sigmoid Emax-1.400.94

Emax has the largest (least negative) mean log score and the smallest RMSE in this hypothetical comparison, in agreement with the AICc ranking. Such agreement is reassuring but not proof of correct specification. The differences may be uncertain, especially with only 30 subjects. A validation scheme should reflect the intended prediction task, and any repeated candidate-search process should be reproduced within each training fold rather than allowed to use held-out responses.

Model-Averaged Predictions and Their Uncertainty

Predictions can be combined on the response scale even when model parameters have different meanings. For instance, \(\beta\) is a linear slope, whereas \(EC_{50}\) is a half-maximum exposure; averaging these parameters across models would not produce a coherent quantity. Instead, calculate each model’s predictive mean at the exposure of interest and combine those means using the model weights.

If model \(m\) assigns weight \(w_m\), predictive mean \(\mu_m\), and predictive variance \(V_m\), the model-averaged mean is \(\mu_{\mathrm{avg}}=\sum_m w_m\mu_m\). Its predictive variance includes uncertainty within models and variation between their means:

$$ V_{\mathrm{avg}}=\sum_m w_mV_m+ \sum_m w_m(\mu_m-\mu_{\mathrm{avg}})^2. $$

The first term is the weighted within-model predictive variance; it can include residual variability and parameter uncertainty, depending on how each model’s predictive distribution was constructed. The second is the between-model contribution. Both terms have squared response units.

Justification: Treat the model index as a random variable with probabilities \(w_m\). Conditional on model \(m\), the prediction has mean \(\mu_m\) and variance \(V_m\). Decompose the squared deviation from the overall mean as \(Y-\mu_{\mathrm{avg}}=(Y-\mu_m)+(\mu_m-\mu_{\mathrm{avg}})\). On taking the conditional expectation, the cross term is zero because \(E(Y-\mu_m\mid m)=0\). Averaging over models gives \(E[V_m\mid m]+E[(\mu_m-\mu_{\mathrm{avg}})^2\mid m]\), which is the displayed formula.

Worked Example: Combining Predictions at 10 mg/L

Suppose the three fitted models predict responses at \(C=10\) mg/L of \(4.050\), \(6.719\), and \(6.971\) percentage points for linear, Emax, and sigmoid Emax, respectively. Suppose their predictive variances are \(1.40\), \(0.3875\), and \(0.50\) percentage-points-squared. Use the normalized AICc weights \(0.00088437\), \(0.96982933\), and \(0.02928631\).

The model-averaged mean is \(0.00088437(4.050)+0.96982933(6.719)+0.02928631(6.971)\approx6.724\) percentage points.

The within-model contribution is \(0.00088437(1.40)+0.96982933(0.3875)+0.02928631(0.50)\approx0.39169\) percentage-points-squared. The between-model contribution is \(0.00088437(4.050-6.724)^2+0.96982933(6.719-6.724)^2+0.02928631(6.971-6.724)^2\approx0.00813\) percentage-points-squared.

Therefore \(V_{\mathrm{avg}}(10)\approx0.39169+0.00813=0.39982\) percentage-points-squared, and the predictive standard deviation is \(\sqrt{0.39982}\approx0.6323\) percentage points. This standard deviation summarizes predictive spread; it is not by itself a confidence interval or a guarantee of calibrated coverage. A prediction interval requires the full predictive distribution or a justified distributional approximation.

Diagnostics, Alternatives, and Limitations

A model comparison is only as credible as its fits and validation design. Before interpreting a ranking, check convergence, parameter plausibility, and residual behavior using the relevant PD diagnostics. For nonlinear candidates, inspect whether estimates are at constraints or poorly identified: a very large \(EC_{50}\), for example, may indicate that the observed exposure range does not reveal the plateau. Plot fitted curves over the observed range and examine whether one or two influential subjects drive the ranking. A candidate with a favorable criterion but systematic residual structure may be inadequate rather than a useful winner.

AICc, BIC, and cross-validation answer related but not identical questions. AICc targets relative expected predictive information loss with a finite-sample correction; BIC applies a stronger, sample-size-dependent complexity penalty and is often used for a different asymptotic model-selection objective. Subject-level cross-validation estimates performance under its particular holdout design and can reveal poor out-of-sample behavior. When rankings disagree, examine the prediction target, fold variability, candidate complexity, and assumptions rather than selecting whichever number is most convenient.

A single best-model prediction is simple, but it ignores uncertainty from plausible alternatives. Weighted model averaging represents that uncertainty if the candidate set is scientifically defensible and the weights are appropriate to the goal. It cannot repair a set that excludes the relevant response shape, and it should not be used to justify extrapolation far beyond observed exposures. At such exposures, candidate curves can diverge sharply despite similar in-range fit. The introductory material on predictive stacking discusses an alternative way to construct predictive combination weights; the present calculation uses relative AICc weights to demonstrate uncertainty decomposition.

Common Pitfalls

  • Comparing incompatible likelihoods. AICc differences are not meaningful if candidates use different observations, response definitions, or likelihood normalizations.
  • Splitting repeated observations across folds. This lets training data contain information from a validation subject. Keep all of each subject’s records in one fold.
  • Treating weights as truth probabilities. AICc weights summarize relative support within the supplied candidate set; they do not prove that one model is true.
  • Reporting only within-model uncertainty. Omitting the between-model term understates predictive variance when plausible models give different means.
  • Trusting a ranking despite failed diagnostics. Convergence problems, boundary estimates, influential subjects, or systematic residual patterns can invalidate a nominally favorable criterion.
Key takeaway: Compare scientifically defensible candidates using a shared likelihood and subject-level validation, inspect fit and diagnostics, and keep model uncertainty distinct from parameter and residual uncertainty. When combining predictions, average predictions and include both within-model and between-model variance.

Check Your Understanding

Answer the questions, then check the solutions below.

  1. Why must the candidates use the same observations and likelihood definition for an AICc comparison?
  2. For AICc differences of 0 and 2, what are the two unnormalized relative supports?
  3. Why should records from one subject remain together in subject-level cross-validation?
  4. What are the two components of model-averaged predictive variance?
  5. If two candidates have similar AICc but predictions far apart at an unobserved exposure, what limitation should be emphasized?

Solutions. (1) Otherwise differences can reflect changes in data or likelihood conventions rather than relative fit and complexity. (2) They are \(\exp(0)=1\) and \(\exp(-2/2)=\exp(-1)\approx0.3679\); normalization is needed to turn them into weights. (3) Splitting records can leak information about the same subject into training and validation, overstating predictive performance. (4) The weighted within-model predictive variance and the weighted variance of model means around the model-averaged mean. (5) Model disagreement makes extrapolated predictions sensitive to candidate choice; good in-range fit does not establish reliable prediction outside the observed exposure range.

Clinical Biostats