Tutorials › Pharmacokinetic-Pharmacodynamic (PK/PD) Modeling › Forward And Backward Covariate Model Building

Population PK/PD Model Building · Tutorial 435 of 598

Forward And Backward Covariate Model Building

You will learn to apply forward and backward covariate selection to PD parameters while making model comparisons explicit and protecting the analysis from unstable selection.

Advanced 10 min read

What You'll Learn

  • Define a candidate covariate effect as a specific change to a typical PD parameter.
  • Apply forward inclusion and backward deletion using explicit model comparisons.
  • Interpret objective-function changes under a consistent fitting setup.
  • Recognize when selection paths can depend on entry order or correlated covariates.
  • Use prespecified criteria and stability checks to limit overfitting and unreliable decisions.

Why Covariate Selection Needs a Defined Search

A list of plausible covariates is not yet a covariate model. Model building requires a rule for deciding which candidate relationships to include, and a precise description of what changes between the models being compared. Forward inclusion and backward deletion are two sequential strategies for doing this. They can organize a search, but neither strategy turns a data-driven choice into proof that a covariate has a biological or causal effect.

Here the target is a typical population PD parameter, such as a typical baseline response or drug-sensitivity parameter. A covariate relationship is a prespecified functional form linking a measured covariate to that parameter. For a positive parameter and a centered, scaled continuous covariate \(z_i\), one possible relationship is

$$ \theta_i = \theta_{\mathrm{typ}}\exp(\beta z_i + \eta_i), $$

where \(\theta_i\) is the parameter for individual \(i\), \(\theta_{\mathrm{typ}}\) is its typical value at \(z_i=0\), \(\beta\) is the covariate coefficient, and \(\eta_i\) represents between-subject random deviation. For a binary covariate, \(z_i\) can instead indicate membership in a specified category, with the comparison category as the reference. The candidate effect is absent when \(\beta=0\); including it adds \(\beta\) as a parameter to estimate. Other functional forms are possible, but the form and the parameter to which it applies must be chosen before the model comparison.

Definition: A forward covariate search starts from a defined base model and adds candidate covariate relationships one at a time, retaining additions that meet a prespecified rule. A backward covariate search starts from a defined model containing a set of candidate relationships and removes them one at a time when their deletion meets a prespecified rule. A model change must state both the covariate relationship being added or removed and the PD parameter it affects.

These procedures are most interpretable when models are fitted to the same observations with the same PD structural model, random-effects structure, residual model, and estimation settings. The candidate models should differ only in the relationship under evaluation. If one model uses different data, a different response model, or a materially different estimation setup, a change in fit cannot be attributed cleanly to the covariate change.

Objective-Function Changes and the Search Logic

Suppose models are fitted by maximum likelihood and the objective function is \(\mathrm{OFV}=-2\log L\), where \(L\) is the maximized likelihood. A smaller OFV indicates a better likelihood fit. For an added covariate, define the decrease in OFV as the base-model OFV minus the expanded-model OFV. For a deletion, define the increase as the reduced-model OFV minus the fuller-model OFV. Those are different comparisons, so report the direction and the models explicitly.

$$ \Delta_{\mathrm{add}} = \mathrm{OFV}_{\mathrm{base}}-\mathrm{OFV}_{\mathrm{with\ covariate}}, \qquad \Delta_{\mathrm{delete}} = \mathrm{OFV}_{\mathrm{without\ covariate}}-\mathrm{OFV}_{\mathrm{with\ covariate}}. $$

For nested models fitted successfully to the same data by the same likelihood method, the larger model contains all parameter settings available to the smaller model, as well as the option of setting the added coefficient to zero. Therefore its best attainable likelihood cannot be worse. Equivalently, its minimum attainable OFV cannot be larger. This follows because optimizing over a parameter space that contains another space cannot yield a worse optimum. In practice, numerical optimization can fail to find that optimum, so a violation of this property should prompt investigation rather than automatic interpretation.

This property explains why adding a term will generally improve or leave unchanged the fit, even when the term is not worth retaining. A search therefore needs a prespecified decision rule, not merely the rule “keep anything that lowers OFV.” The rule might use a chosen likelihood-based criterion or an information criterion, together with scientific and data-support requirements. The appropriate statistical tests and their calibration are a separate topic; the important point here is to specify the criterion before inspecting the search results and apply it consistently.

Forward Inclusion

In forward selection, first define a base model and a finite set of candidate covariate relationships. Each candidate is tested as a specific addition to the current model. If one addition meets the inclusion rule, retain it and compare the remaining candidates conditional on the updated model. Continue until no remaining candidate meets the rule, or until a prespecified stopping condition is reached.

1
Specify the base model.
State the PD parameterization, random-effects and residual structures, analysis observations, and estimation method to be held fixed.
2
Define candidate additions.
For each candidate, name the covariate, its functional form, and the typical PD parameter it modifies. Fit each addition to the current model.
3
Apply the inclusion rule.
Compare the candidates using the prespecified criterion. Add a qualifying relationship, then reassess the remaining candidates conditional on that addition.
4
Stop and review.
Stop when no remaining candidate qualifies. Confirm successful estimation and check whether the retained model is sensitive to reasonable changes in the search path or fitting starts.

Worked Example: Forward Search for a PD Parameter

Hypothetical data and setup. Suppose the base population PD model has an OFV of 1200.0. Three candidate relationships are proposed for the same positive typical PD parameter: a linear effect of centered age, a linear effect of centered body weight, and a reference-level contrast for sex. All models use the same observations and otherwise identical model and estimation settings. For illustration only, the prespecified rule is to retain a candidate when its conditional OFV decrease is at least 6.0 units.

Fitting each candidate separately gives the following changes from the base model:

Candidate additionOFV with additionDecrease from current model
Age1186.01200.0 - 1186.0 = 14.0
Body weight1192.01200.0 - 1192.0 = 8.0
Sex1198.01200.0 - 1198.0 = 2.0

Age has the largest qualifying decrease, \(14.0\), so the age relationship is added first. The remaining candidates must now be evaluated conditional on age; their original single-candidate decreases are not reused. Suppose the age-plus-weight model has OFV 1181.0 and the age-plus-sex model has OFV 1184.0. Their conditional decreases are \(1186.0-1181.0=5.0\) for weight and \(1186.0-1184.0=2.0\) for sex. Neither meets the prespecified 6.0-unit rule. The forward search therefore stops with the age relationship retained. This is a result of the stated search and rule, not evidence that age causes the PD parameter to differ.

Backward Deletion

Backward selection starts with a model that includes the candidate relationships being considered. For each relationship, fit the model with that relationship removed and compare it with the current fuller model. A small increase in OFV after deletion means that removing the relationship costs little likelihood fit; whether that is enough to remove it depends on the prespecified rule and scientific context. After a deletion, reassess the remaining terms in the updated model rather than relying only on their initial deletion results.

Worked Example: Backward Deletion of Three Candidate Effects

Hypothetical data and setup. A full model contains age, body weight, and sex effects on specified typical PD parameters and has OFV 1172.0. As in the previous example, all fits use the same observations and estimation setup. For illustration, the backward rule is to remove a relationship if deleting it increases OFV by less than 6.0 units.

First, delete each term in turn from the full model. Suppose deleting sex gives OFV 1174.0, deleting weight gives 1180.0, and deleting age gives 1186.0. The corresponding increases are \(1174.0-1172.0=2.0\), \(1180.0-1172.0=8.0\), and \(1186.0-1172.0=14.0\). Sex is the only deletion that meets the rule, so remove sex.

Now the current model is age plus weight, with OFV 1174.0. Suppose deleting weight from this model gives an age-only OFV of 1185.0, an increase of \(1185.0-1174.0=11.0\). Suppose deleting age gives a weight-only OFV of 1190.0, an increase of \(1190.0-1174.0=16.0\). Neither deletion meets the rule. The backward search stops with age and weight retained. The conditional re-evaluation matters: a term's contribution is assessed relative to the model that remains, not just to the original full model.

What Makes Selection Unstable?

Forward and backward searches are algorithms for exploring a set of models, not guarantees of a unique or robust final model. Their results can depend on the entry or deletion order, the candidate list, the criterion, and the data available. In particular, correlated covariates may carry overlapping information: one can appear useful when tested alone and contribute much less after another is included. The order in which a search evaluates candidates can then affect which relationship is retained.

A careful analysis should protect against common sources of instability:

  • Define candidates before searching. Specify each covariate's form, target PD parameter, and allowable range of application. Avoid trying many undocumented transformations and retaining only the most favorable result.
  • Keep model comparisons controlled. Use the same observations and the same non-covariate model components. Document changes to estimation settings, and do not compare OFVs from incompatible fits as if they reflected only a covariate change.
  • Require estimable, converged fits. Check convergence, parameter plausibility, and whether estimates are unreasonably imprecise or on a boundary. An apparent improvement from a failed or poorly identified fit is not a sound reason to retain a term.
  • Check order sensitivity. Compare reasonable forward and backward paths, or reconsider candidate ordering, when covariates are related. Mark terms whose retention depends strongly on the path as uncertain.
  • Respect data support and scientific rationale. A mathematically favorable result does not compensate for sparse representation, an implausible relationship, or extrapolation beyond the covariate values observed.
  • Report the search, not just its endpoint. Record the starting model, every tested addition or deletion, the fit criterion, decision threshold, and any failed fits. This makes the selection reproducible and exposes borderline decisions.

A practical alternative to automatic stepwise selection is to prespecify a small scientifically motivated model and assess whether its relationships are supported by the data. Forward search is economical when the base model is trusted and few additions are plausible. Backward search is useful when a defensible, estimable full candidate model can be fitted. A bidirectional search allows additions and deletions after each step, but increases the number of opportunities for data-driven selection. Information criteria can compare models while penalizing complexity, but they answer a criterion-specific model-ranking question; they do not eliminate uncertainty or establish biological truth. No single approach replaces clear rationale, model evaluation, and transparent reporting.

Common Mistakes and Limitations

Common pitfall: “The weight term reduced OFV by 8.0 when added alone, so it must be retained even though its conditional decrease after age entered was only 5.0.” The first result compares weight with the base model; the second compares weight with the current age model. They are different questions. Apply the prespecified rule to the model change actually being considered, and recognize that correlated candidates may explain overlapping variation.

Stepwise selection also tends to make the chosen model look more certain than it is: the same data are used both to select relationships and to estimate them. Coefficients and standard errors from the final selected model do not, by themselves, account for all the uncertainty introduced by the search. A selected relationship should therefore be reported as conditional on the candidate set, model assumptions, data, and selection rule. It is an estimated association in the model, not proof of a causal mechanism. Sensitivity analyses and independent scientific judgment remain important, especially when alternative paths lead to different models.

Check Your Understanding

Answer each question using the definitions and search rules above. Solutions follow the questions.

  1. A base model has OFV 900.0. Adding candidate A gives OFV 892.0, and adding candidate B gives OFV 897.0. Under a rule requiring a decrease of at least 6.0, which candidate qualifies at the first forward step?
  2. A full model has OFV 500.0. Removing a covariate gives OFV 504.0. What is the deletion-related OFV increase, and what does it mean for fit?
  3. Why must a remaining candidate be re-evaluated after another covariate enters a forward model?
  4. Name two reasons a covariate search can produce an unstable or misleading final model.

Solutions. (1) Candidate A qualifies: \(900.0-892.0=8.0\), whereas B decreases OFV by \(900.0-897.0=3.0\), below the 6.0 rule. (2) The increase is \(504.0-500.0=4.0\). The reduced model fits less well by this objective-function measure; whether deletion is acceptable depends on the prespecified rule and scientific context. (3) The candidate's contribution is conditional on the current model. Another covariate may account for overlapping information, changing its incremental fit. (4) Examples include correlated covariates with overlapping information, sparse data or poorly estimated parameters, failed convergence, and searching many candidate forms without prespecification.

Clinical Biostats