Tutorials › Population Pharmacokinetics › Model Averaging After Covariate Selection

Covariate Selection Strategies and Their Statistics · Tutorial 305 of 599

Model Averaging After Covariate Selection

Use information-criterion or Bayesian weights to combine covariate-model results and quantify the uncertainty that single-model selection can hide.

Advanced 12 min read

What You'll Learn

  • Define a candidate model set and check when its models can be meaningfully averaged.
  • Calculate normalized information-criterion weights and interpret them appropriately.
  • Distinguish information-criterion weights from Bayesian posterior model probabilities.
  • Average predictions and covariate parameters across models using a common estimand.
  • Decompose model-averaged uncertainty into within-model and between-model components.
  • Identify limitations, diagnostics, and alternatives to model averaging.

Why Average Across Covariate Models?

Covariate selection often leaves several plausible models rather than one clear winner. Two models may have similar support but imply meaningfully different predictions for a patient, or different estimates of a covariate effect. Reporting only the top-ranked model hides this uncertainty: the reported prediction or effect is conditional on that particular model having been chosen.

Model averaging retains a set of plausible models and combines their results using weights. In population pharmacokinetics (PK), the results may be individual or population predictions, such as clearance or concentration at a specified time, or a covariate-effect parameter defined comparably across models. Averaging does not make an inadequate candidate set adequate, and it does not establish that any candidate model is true. Its purpose is to represent uncertainty among the models included in the analysis.

Definition: Given candidate models \(M_1,\ldots,M_K\), normalized nonnegative weights \(w_1,\ldots,w_K\) satisfying \(\sum_{k=1}^{K}w_k=1\), and a quantity \(\theta_k\) estimated or predicted under model \(M_k\), the model-averaged quantity is \(\bar{\theta}_{\mathrm{MA}}=\sum_{k=1}^{K}w_k\theta_k\). Each \(\theta_k\) must represent the same target quantity across models.

Before averaging, specify the candidate set, the quantity to average, and the weighting rule. Models should generally be fitted to the same observations with comparable likelihood definitions and the same response data; otherwise, their information criteria or likelihood evidence may not be on a common scale. The target also needs a common meaning. For example, predictions of concentration at the same dose, time, and covariate values can be averaged even when the models use different covariate terms. Raw coefficients cannot be averaged meaningfully if their scales, parameterizations, or contrasts differ.

Information-Criterion Weights

For a candidate set fitted to the same data, an information criterion balances model fit against a complexity penalty. A common choice is AIC; AICc applies a finite-sample correction and is often preferable when the sample is not large relative to the number of estimated parameters. Define \(\mathrm{IC}_k\) as the chosen criterion for model \(M_k\), with smaller values indicating better support by that criterion within the candidate set. The relative difference and normalized weight are

$$ \Delta_k=\mathrm{IC}_k-\min_j(\mathrm{IC}_j), \qquad w_k=\frac{\exp(-\Delta_k/2)} {\sum_{j=1}^{K}\exp(-\Delta_j/2)}. $$

These weights are nonnegative and sum to one. They quantify relative support within the specified candidate set under the selected information criterion. They are not, in general, probabilities that the models are true. Adding or removing candidate models can change the normalized weights even when the fitted models themselves do not change.

Worked Example: Averaging a Concentration Prediction With AIC Weights

Suppose three hypothetical covariate models are fitted to the same PK data. At a specified dose, time, and patient covariate profile, their AIC values are 102, 104, and 107, and their predicted concentrations are 2.4, 2.1, and 1.6 mg/L. Calculate the AIC weights and the averaged prediction.

The differences from the minimum AIC are \(0\), \(2\), and \(5\). The unnormalized weights are \(1\), \(\exp(-2/2)=0.3679\), and \(\exp(-5/2)=0.08208\). Their sum is \(1.4500\), so the normalized weights are approximately \(0.6897\), \(0.2537\), and \(0.05661\).

The averaged prediction is

$$ \bar{C}_{\mathrm{MA}} =(0.6897)(2.4)+(0.2537)(2.1)+(0.05661)(1.6) =1.6553+0.5328+0.0906 =2.279\ \mathrm{mg/L}. $$

This is a weighted prediction for the specified patient and dosing scenario, not a claim that the true concentration is known to be 2.279 mg/L. The models receive different weights because their AIC values differ, but each contributes to the prediction.

Bayesian Model Averaging

Bayesian model averaging uses posterior model probabilities as weights. For data \(D\), a model prior probability \(P(M_k)\), and the model’s marginal likelihood \(P(D\mid M_k)\), the posterior weight is

$$ P(M_k\mid D)= \frac{P(D\mid M_k)P(M_k)} {\sum_{j=1}^{K}P(D\mid M_j)P(M_j)}. $$

The marginal likelihood integrates the likelihood over the model’s parameter prior. Consequently, Bayesian weights depend on both the observed data and the prior distributions for parameters and models. Unlike AIC weights, these are posterior probabilities for the candidate models under the specified Bayesian model set and priors. They are not prior-free probabilities, nor do they cover models that were not considered.

A BIC-based approximation is sometimes used to approximate relative Bayesian model support under particular regularity conditions and prior assumptions. It should not be treated as identical to calculating posterior model probabilities from specified priors and marginal likelihoods. Whatever weighting method is used, report it clearly.

Worked Example: Bayesian Weights and a Posterior Prediction

Consider three hypothetical candidate models with prior probabilities \(0.50\), \(0.30\), and \(0.20\). Their marginal likelihoods for the observed data are \(0.12\), \(0.08\), and \(0.02\), on a common scale. For the same patient and dosing scenario, their posterior predictive means are 3.0, 2.5, and 1.0 mg/L, and their within-model predictive variances are \(0.09\), \(0.16\), and \(0.25\ (\mathrm{mg/L})^2\).

The unnormalized model probabilities are \(0.50(0.12)=0.060\), \(0.30(0.08)=0.024\), and \(0.20(0.02)=0.004\). The normalizing constant is \(0.088\), giving posterior weights \(0.6818\), \(0.2727\), and \(0.04545\). The posterior model-averaged predictive mean is

$$ \bar{C}=0.6818(3.0)+0.2727(2.5)+0.04545(1.0) =2.773\ \mathrm{mg/L}. $$

The mean alone does not describe the full predictive uncertainty. The variance calculation in the next section gives approximately \(0.3147\ (\mathrm{mg/L})^2\), corresponding to a predictive standard deviation of \(\sqrt{0.3147}=0.561\ \mathrm{mg/L}\). This calculation includes the stated within-model predictive variances as well as differences among the model-specific means.

Uncertainty Within and Between Models

A model-specific estimate has uncertainty even if the model were fixed; uncertainty also arises because plausible models can give different estimates. For Bayesian model averaging, the total variance of a quantity \(Y\), conditional on the data, separates into these two components:

$$ \operatorname{Var}(Y\mid D) =\sum_{k=1}^{K} w_k\operatorname{Var}(Y\mid D,M_k) +\sum_{k=1}^{K}w_k \left\{\operatorname{E}(Y\mid D,M_k)-\operatorname{E}(Y\mid D)\right\}^{2}. $$

Here \(w_k=P(M_k\mid D)\), and \(\operatorname{E}(Y\mid D)=\sum_k w_k\operatorname{E}(Y\mid D,M_k)\). The first sum is the weighted within-model variance. The second is the between-model variance: it is large when models with substantial weight give quite different results.

The decomposition follows by conditioning on the model indicator. Write \(\mu_k=\operatorname{E}(Y\mid D,M_k)\) and \(\mu=\operatorname{E}(Y\mid D)\). For each model, expand \(Y-\mu=(Y-\mu_k)+(\mu_k-\mu)\), square, and take the conditional expectation. The cross-term is zero because \(\operatorname{E}(Y-\mu_k\mid D,M_k)=0\). Thus

$$ \operatorname{E}\{(Y-\mu)^2\mid D,M_k\} =\operatorname{Var}(Y\mid D,M_k)+(\mu_k-\mu)^2. $$

Averaging this equality over models with weights \(w_k\) gives the stated variance formula. The same decomposition can be applied to model-specific estimates using their estimated within-model variances. For information-criterion weights, this can be a useful measure of uncertainty, but it is not automatically a calibrated posterior variance: the weights are not posterior probabilities, and uncertainty from estimating weights and searching over models may not be included.

Worked Example: Averaging a Covariate Effect and Its Uncertainty

Suppose two hypothetical models define the same coefficient \(\beta\): change in log typical clearance for a 10 mL/min increase in renal function. The first model includes the covariate and estimates \(\beta_1=0.18\) with standard error \(0.08\); the second omits it, so its coefficient for this common effect is fixed at \(\beta_2=0\). Suppose their model weights are \(0.65\) and \(0.35\).

The model-averaged effect is

$$ \bar{\beta}=0.65(0.18)+0.35(0)=0.117. $$

For an illustrative variance decomposition, use \(0.08^2=0.0064\) as the within-model variance in the model that estimates the coefficient, and zero for the coefficient fixed at zero in the model that omits it. The weighted within-model component is \(0.65(0.0064)+0.35(0)=0.00416\). The between-model component is

$$ 0.65(0.18-0.117)^2+0.35(0-0.117)^2 =0.00737. $$

The total is \(0.00416+0.00737=0.01153\), giving a standard deviation of \(\sqrt{0.01153}=0.1074\). The between-model component is larger than the within-model component here, so reporting only the included-model estimate \(0.18\) with standard error \(0.08\) would omit an important source of model uncertainty. This is an illustrative decomposition, not a general confidence-interval procedure; the zero-variance simplification for the omitted coefficient does not account for uncertainty in model weights or selection.

Choosing What to Average and Checking the Result

Predictions are often natural averaging targets because every candidate model can usually predict the same quantity for the same covariate profile. Parameter averaging requires more care. If a covariate is absent in one model, its effect can sometimes be represented as zero for a prespecified common effect, as in the example above. This makes the average an unconditional effect across the model set, not the effect conditional on inclusion. If coefficients use different reference categories, transformations, or units, first express them on a shared scale or average a common prediction instead.

Check the following before interpreting an average:

  • Common data and likelihood: verify that the criterion or evidence used for weighting is comparable across models.
  • Common target: fix the dose, time, patient characteristics, contrast, or other estimand before calculating model-specific values.
  • Weight concentration: report whether one model dominates or whether several models contribute materially. Weights near one do not prove the dominant model is correct.
  • Prediction plausibility: inspect the model-specific and averaged predictions across relevant covariate ranges. An average can conceal poor fit or implausible behavior in an individual model.
  • Candidate-set sensitivity: examine whether conclusions change when defensible candidate models or prior model probabilities change.

Model averaging is not the only approach. Selecting one model is simpler to communicate, but treats that selection as fixed in subsequent summaries and can understate uncertainty. Fitting a full model avoids discrete selection but may include weak or poorly identified effects. Cross-validation can assess predictive performance, and stacking can choose weights to optimize predictive performance; those weights are not automatically probabilities that models are true. These approaches answer related but different questions, so the choice should match the purpose of the analysis.

Common Pitfalls and Limitations

A frequent mistake is to call AIC weights “the probabilities that each model is correct.” They are normalized relative-support weights for a specified candidate set and criterion, not posterior model probabilities. The correction is to state the weighting method and interpret the result accordingly; use Bayesian language only when weights are actually posterior probabilities derived from model priors and marginal likelihoods.

Another mistake is to average incompatible coefficients simply because they share a symbol. A coefficient per unit of a raw covariate is not directly comparable to an exponent in a power model, and a coefficient under one reference category may not match a coefficient under another. Average a common prediction or translate each model’s result to the same estimand before combining.

Finally, averaging cannot rescue a candidate set that excludes important structure, fix misspecified observation or random-effects models, or guarantee good extrapolation. The result is conditional on the models, data, and weighting choices considered. Report those choices and, where relevant, show how the average and its uncertainty respond to reasonable alternatives.

Check Your Understanding

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

  1. Two models have information-criterion values 50 and 52. What are their normalized weights if these are the only candidates?
  2. In one sentence, distinguish an AIC weight from a Bayesian posterior model probability.
  3. Why can model-averaged variance be larger than the weighted average of the within-model variances?
  4. A covariate coefficient is expressed per 1 mg/L in one model and per 10 mg/L in another. What must be done before averaging these coefficients?

Solutions. (1) The unnormalized weights are \(1\) and \(\exp(-1)=0.3679\), so the normalized weights are \(1/1.3679=0.7311\) and \(0.3679/1.3679=0.2689\). (2) An AIC weight measures relative support within the candidate set under AIC, whereas a Bayesian posterior model probability is conditional on the data and specified prior distributions. (3) The total variance includes between-model variation in addition to within-model variance; models with different estimates contribute a positive between-model component. (4) Express both coefficients on the same scale, such as per 10 mg/L, before combining, or average a common prediction instead.

Clinical Biostats